{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"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":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"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":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"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":"_AcceleratorConnector._check_config_and_set_final_flags (cyclomatic 46): _AcceleratorConnector._check_config_and_set_final_flags 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/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aaf3162ca17a0af106d5c3f219a80cabee9b534443dcbd53d5c27c39ca4438"}},{"ruleId":"D1","level":"warning","message":{"text":"_Connector._check_config_and_set_final_flags (cyclomatic 43): _Connector._check_config_and_set_final_flags 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/lightning/fabric/connector.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81fb0d551b0aee6edf0348b0dc883e7b753458c290c87f4977284f8a0464e55"}},{"ruleId":"D1","level":"warning","message":{"text":"_runif._runif_reasons (cyclomatic 32): _runif._runif_reasons 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/lightning/fabric/utilities/testing/_runif.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c923a33f4dd75eeaf4aa0d2d2365224fc750ad561ea19c1a52737735221dda1"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelCheckpoint.on_train_batch_end (cyclomatic 31): ModelCheckpoint.on_train_batch_end 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/lightning/pytorch/callbacks/model_checkpoint.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ab3fcd9b0cad98b41173016ac8392cfdc91a21ec5bcdee01333fd2a9a61828"}},{"ruleId":"D1","level":"warning","message":{"text":"Trainer.__init__ (cyclomatic 30): Trainer.__init__ 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/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb68821ca337faeb4d334a33ad1351d7fc7eac93eee30ad7ca9a024b37d0cd0"}},{"ruleId":"D1","level":"warning","message":{"text":"_CheckpointConnector._parse_ckpt_path (cyclomatic 28): _CheckpointConnector._parse_ckpt_path 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/lightning/pytorch/trainer/connectors/checkpoint_connector.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc8aa1a5cc6d8174e7a93528b5e6e9a8d2eec431295bfd56700fb1654b19fc4"}},{"ruleId":"D1","level":"warning","message":{"text":"saving._load_state (cyclomatic 25): saving._load_state 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/lightning/pytorch/core/saving.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5c9659b33e4f604abb29aaf7130ecc8afffbe4dd9b830673fff5aeac77b421"}},{"ruleId":"D1","level":"warning","message":{"text":"FSDPStrategy.save_checkpoint (cyclomatic 24): FSDPStrategy.save_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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"59743bc08e9943f2bfa4d64c59b74bf92c3f79c458df5780a2f6b2c87bb8c499"}},{"ruleId":"D1","level":"warning","message":{"text":"parsing.save_hyperparameters (cyclomatic 24): parsing.save_hyperparameters 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/lightning/pytorch/utilities/parsing.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a456276f6bd24bb733860d918ae6c3ea83f62f5c80cfb199b681357a5189d2"}},{"ruleId":"D1","level":"warning","message":{"text":"XLAFSDPStrategy.load_checkpoint (cyclomatic 22): XLAFSDPStrategy.load_checkpoint 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/lightning/fabric/strategies/xla_fsdp.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8568cd4440c7419c0ba2a299606c082ecb48bf2097bd7c4d9af956223881f5"}},{"ruleId":"D1","level":"warning","message":{"text":"_FitLoop.setup_data (cyclomatic 22): _FitLoop.setup_data 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/lightning/pytorch/loops/fit_loop.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a27df33888d4df7cc037b8e8bc43f0fe3594ad8b5d3123689b45afeb1d17ba"}},{"ruleId":"D1","level":"warning","message":{"text":"LightningModule.log (cyclomatic 21): LightningModule.log 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/lightning/pytorch/core/module.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d42d421b41ec555ef7f56e9a5daf33aefab7c479c5809c3bddbad7a3f794fd"}},{"ruleId":"D1","level":"warning","message":{"text":"_Connector._check_and_init_precision (cyclomatic 19): _Connector._check_and_init_precision 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/lightning/fabric/connector.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3ec348ac4fa93e44890a7c7c349bfc9b32802d4652e602e3493d02835c5126"}},{"ruleId":"D1","level":"warning","message":{"text":"FSDPStrategy.load_checkpoint (cyclomatic 19): FSDPStrategy.load_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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c5e1b0ddedca7ccaac5e1a1f23c613fcd335ba62d9777477cdf29fbb00fd3b"}},{"ruleId":"D1","level":"warning","message":{"text":"_EvaluationLoop.setup_data (cyclomatic 18): _EvaluationLoop.setup_data 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acc654731d5d499c9af5683cbcc2ec2be5f395aa4b3af1c794fb3c83a60cbe8"}},{"ruleId":"D1","level":"warning","message":{"text":"data._get_dataloader_init_args_and_kwargs (cyclomatic 17): data._get_dataloader_init_args_and_kwargs 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/lightning/fabric/utilities/data.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"baacd37831c66d8f41fa214dc184bc85f48c34ec1533f782ca3013592a33cbd0"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPruning.__init__ (cyclomatic 17): ModelPruning.__init__ 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/lightning/pytorch/callbacks/pruning.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c742eb6e773fe1e89e96cc50d255583c63bccb19ca44a19edf028bd9a91753f6"}},{"ruleId":"D1","level":"warning","message":{"text":"StochasticWeightAveraging.on_train_epoch_start (cyclomatic 17): StochasticWeightAveraging.on_train_epoch_start 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/lightning/pytorch/callbacks/stochastic_weight_avg.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccc82ea498e607c30c82b5a0ddcb05af1ad9a3c35f0d1d2ab5cb58b55ec2e04"}},{"ruleId":"D1","level":"warning","message":{"text":"utilities._log_hyperparams (cyclomatic 17): utilities._log_hyperparams 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/lightning/pytorch/loggers/utilities.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a61d61cefd4decc29876f9d9e1e87ce8cd9b17a3ddf3ab0a6dffc8120729f6"}},{"ruleId":"D1","level":"warning","message":{"text":"_TrainingEpochLoop.advance (cyclomatic 17): _TrainingEpochLoop.advance 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/lightning/pytorch/loops/training_epoch_loop.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5129c9f9c9a5455b2251089522bacfd0d85c90dbcb03c30b2a7cff4b54317fc"}},{"ruleId":"D1","level":"warning","message":{"text":"data._get_dataloader_init_args_and_kwargs (cyclomatic 17): data._get_dataloader_init_args_and_kwargs 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/lightning/pytorch/utilities/data.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e608f9ed0bac19c05777542def429792ec0cd604ca785e37da5ebc5fda4a53"}},{"ruleId":"D1","level":"warning","message":{"text":"_EvaluationLoop._evaluation_step (cyclomatic 16): _EvaluationLoop._evaluation_step 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a601c2a7680ed76106559f165bfd0d112bbb64dcc3655afcd23ec79b76ae7d"}},{"ruleId":"D1","level":"warning","message":{"text":"_EvaluationLoop._print_results (cyclomatic 16): _EvaluationLoop._print_results 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"7994281ec6715c60f223818d066066331552770a27bdb1cb2a4a58c93500a7f6"}},{"ruleId":"D1","level":"warning","message":{"text":"_CheckpointConnector.dump_checkpoint (cyclomatic 16): _CheckpointConnector.dump_checkpoint 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/lightning/pytorch/trainer/connectors/checkpoint_connector.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"28764994e08755c65bd8cc5a294f391cdd5b0b931697b0af0ddd5f0b82f6d524"}},{"ruleId":"D2","level":"warning","message":{"text":"_AcceleratorConnector._check_config_and_set_final_flags (cognitive 76): _AcceleratorConnector._check_config_and_set_final_flags has cognitive complexity 76 (threshold 15). Drivers by points: if/else 26 (57 pts), boolean chains 14, ternaries 2 (3 pts), loops 1 (2 pts) (nesting depth added 33). 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/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b149f9e9d23198c6ce201090171e093638f6a8afbbc8078d5a9d271fb2a391f6"}},{"ruleId":"D2","level":"warning","message":{"text":"_Connector._check_config_and_set_final_flags (cognitive 71): _Connector._check_config_and_set_final_flags has cognitive complexity 71 (threshold 15). Drivers by points: if/else 25 (53 pts), boolean chains 13, ternaries 2 (3 pts), loops 1 (2 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e89cee4ac496a18be5c8c5cddd63357c6411d2db3c5538fa4bef6648ef29f89"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelCheckpoint.on_train_batch_end (cognitive 50): ModelCheckpoint.on_train_batch_end has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 11, ternaries 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/callbacks/model_checkpoint.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae084dfa3e79974f2dda37eebc58c0cef884e7b632a75efce67061333baac81d"}},{"ruleId":"D2","level":"warning","message":{"text":"Trainer.__init__ (cognitive 45): Trainer.__init__ has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (36 pts), boolean chains 7, 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/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf6e380a380eb58d850be529cfe8d626289760c83ec6d8d307c0b8ec982931e"}},{"ruleId":"D2","level":"warning","message":{"text":"_EvaluationLoop._print_results (cognitive 44): _EvaluationLoop._print_results has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 6 (15 pts), ternaries 1 (5 pts), error handling 1 (3 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"455a63be2f54e0e32bc8f348223f84569f90245d6bfaa63913e3bf21da7fb0e6"}},{"ruleId":"D2","level":"warning","message":{"text":"_runif._runif_reasons (cognitive 40): _runif._runif_reasons has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 9, 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/lightning/fabric/utilities/testing/_runif.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e2b2846a67998cd4ad23a67c3f329e1e0ab72cc19e5f951ba78ae210944674"}},{"ruleId":"D2","level":"warning","message":{"text":"FSDPStrategy.save_checkpoint (cognitive 38): FSDPStrategy.save_checkpoint has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (22 pts), ternaries 2 (8 pts), boolean chains 4, loops 2 (4 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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9e16c7b39093e036d3d2c76e21578f1b451118825b487f6daf48dd4dda5de5"}},{"ruleId":"D2","level":"warning","message":{"text":"saving._load_state (cognitive 37): saving._load_state has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 4, loops 1 (3 pts), 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/lightning/pytorch/core/saving.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"da41db7b930f85de7a501ec279bc717eedfc434261b5abc053aa90d5f49fcea2"}},{"ruleId":"D2","level":"warning","message":{"text":"_CheckpointConnector._parse_ckpt_path (cognitive 37): _CheckpointConnector._parse_ckpt_path has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 6, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/connectors/checkpoint_connector.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0107214f7a0fbb86b45db35e7af634535cf76813e35acfee10bc76ec075420f"}},{"ruleId":"D2","level":"warning","message":{"text":"parsing.save_hyperparameters (cognitive 37): parsing.save_hyperparameters has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (28 pts), ternaries 2 (5 pts), loops 2 (3 pts), boolean chains 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/lightning/pytorch/utilities/parsing.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c5b09513994f7ceff1ffe60302589664078e8748514c09a24f799ebb5b31b0"}},{"ruleId":"D2","level":"warning","message":{"text":"XLAFSDPStrategy.load_checkpoint (cognitive 36): XLAFSDPStrategy.load_checkpoint has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 3 (7 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/lightning/fabric/strategies/xla_fsdp.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2ad0835d640229d9b150eda47029f05225ffdf420020b3067453c6bc5ad5b1"}},{"ruleId":"D2","level":"warning","message":{"text":"FSDPStrategy.load_checkpoint (cognitive 29): FSDPStrategy.load_checkpoint has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 3 (7 pts), ternaries 3 (6 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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a4a9e43b50e5e1bba5e7957ac981e9326a99b2ae6d2cc59371be1a5eb9c6aa"}},{"ruleId":"D2","level":"warning","message":{"text":"optimizer._configure_schedulers_automatic_opt (cognitive 29): optimizer._configure_schedulers_automatic_opt has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 3, 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/lightning/pytorch/core/optimizer.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec85dcd454eac949dc8bda8a0eee59a5cae3cfe14c53598b795ff38fa678d375"}},{"ruleId":"D2","level":"warning","message":{"text":"data._dataloader_init_kwargs_resolve_sampler (cognitive 29): data._dataloader_init_kwargs_resolve_sampler has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 3, error handling 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 16). 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/lightning/pytorch/utilities/data.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc57ff446de0f14f59a88ca803b56d6330556247edda5c9463f8e8d632f1d263"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPruning.__init__ (cognitive 27): ModelPruning.__init__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 3, 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/lightning/pytorch/callbacks/pruning.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f46eac7fb2cbcc727151bd11a912fb6be065072d011bf807504e7e4bd87d9a"}},{"ruleId":"D2","level":"warning","message":{"text":"_TrainingEpochLoop.advance (cognitive 27): _TrainingEpochLoop.advance has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 3, ternaries 1 (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/lightning/pytorch/loops/training_epoch_loop.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15a988b6112886ba1805246b75df0468db8961d5174a5e08ccdb79e7b7e80f4"}},{"ruleId":"D2","level":"warning","message":{"text":"model_parallel._load_checkpoint (cognitive 26): model_parallel._load_checkpoint has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (6 pts), 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/lightning/fabric/strategies/model_parallel.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8e5bfbff6a9ea7d61d51e0236163a8970ff55e8f6eb1235ee79c2d8279a12d"}},{"ruleId":"D2","level":"warning","message":{"text":"data._get_dataloader_init_args_and_kwargs (cognitive 26): data._get_dataloader_init_args_and_kwargs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (24 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/lightning/fabric/utilities/data.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f1ff815a546bbcad9bd130c14b3d3b30ebc698bfdfb88ab46ba49473e70cd7"}},{"ruleId":"D2","level":"warning","message":{"text":"LightningModule.log (cognitive 26): LightningModule.log has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5 (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/lightning/pytorch/core/module.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6aa9044120980872cd1a6cfb92b7529424009fd3dc455ae63ce351aeec0de5"}},{"ruleId":"D2","level":"warning","message":{"text":"batch_size_scaling._run_binsearch_scaling (cognitive 26): batch_size_scaling._run_binsearch_scaling has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (23 pts), error handling 1 (2 pts), 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/lightning/pytorch/tuner/batch_size_scaling.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fc5fcf1a8093507a489f332a1373755ce9a01546e4bf705954fa7ed0e4cdf9"}},{"ruleId":"D2","level":"warning","message":{"text":"data._get_dataloader_init_args_and_kwargs (cognitive 26): data._get_dataloader_init_args_and_kwargs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (24 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/lightning/pytorch/utilities/data.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f2816af1fe18a298aaad64e63c2c9bb25d6251d11f9391e05b01e3987f7cad"}},{"ruleId":"D2","level":"warning","message":{"text":"_FitLoop.setup_data (cognitive 25): _FitLoop.setup_data has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 4, ternaries 2 (3 pts), 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/lightning/pytorch/loops/fit_loop.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"26773ec35cf1d14d5e8e6d0a5b3e249a39dbb11ae32fe5453badb5247c52b61b"}},{"ruleId":"D2","level":"warning","message":{"text":"_CheckpointConnector.dump_checkpoint (cognitive 25): _CheckpointConnector.dump_checkpoint has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 3 (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/lightning/pytorch/trainer/connectors/checkpoint_connector.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"1befca0e6ce7fef51a523fc9a34d10253c76f1354db20fa9eacdcdd3877c529d"}},{"ruleId":"D2","level":"warning","message":{"text":"StochasticWeightAveraging.on_train_epoch_start (cognitive 24): StochasticWeightAveraging.on_train_epoch_start has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, loops 1 (2 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/lightning/pytorch/callbacks/stochastic_weight_avg.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac3de277e94a8bdc7fe0d49e9713b7683cc7afae5abb434ded0c224da04f99a"}},{"ruleId":"D2","level":"warning","message":{"text":"FSDPStrategy.load_checkpoint (cognitive 24): FSDPStrategy.load_checkpoint has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (6 pts), loops 2 (5 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/lightning/pytorch/strategies/fsdp.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ed18694c204b4e4faba44b5b9647bf3b3eec7743f971741428ed4f85db64b5"}},{"ruleId":"D2","level":"warning","message":{"text":"fsdp._warn_if_shared_params_across_fsdp_units (cognitive 23): fsdp._warn_if_shared_params_across_fsdp_units has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (5 pts), ternaries 1 (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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c60392ed39d4594122072d738fea5f1aa38d923c256184c66a2c7867eb9b56"}},{"ruleId":"D2","level":"warning","message":{"text":"utilities._log_hyperparams (cognitive 22): utilities._log_hyperparams has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, loops 2 (3 pts), 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/lightning/pytorch/loggers/utilities.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d6a7439471099c68c121b8769bf382f0d3768cfc9388ccb0343a47969395cf"}},{"ruleId":"D2","level":"warning","message":{"text":"_TrainingEpochLoop._update_learning_rates (cognitive 22): _TrainingEpochLoop._update_learning_rates has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 2, ternaries 1 (2 pts), 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/lightning/pytorch/loops/training_epoch_loop.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef56d4323630b1d05077a7dd393598deae5cc94c58db789af9bd9dd32be4f7cb"}},{"ruleId":"D2","level":"warning","message":{"text":"_Connector._check_and_init_precision (cognitive 21): _Connector._check_and_init_precision has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 2 (4 pts), boolean chains 3 (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/lightning/fabric/connector.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbd23d1ad5052e6424b40267905a0b13d2dcb95c669cde522c06c2ee79d7e22"}},{"ruleId":"D2","level":"warning","message":{"text":"model_parallel._save_checkpoint (cognitive 21): model_parallel._save_checkpoint has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 1 (3 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/lightning/fabric/strategies/model_parallel.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61544e2fdad6ecc3c61f7b23c77ce1158841b39da90cb171601d7752a71b302"}},{"ruleId":"D2","level":"warning","message":{"text":"model_parallel._load_raw_module_state (cognitive 20): model_parallel._load_raw_module_state has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts), ternaries 1 (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/lightning/fabric/strategies/model_parallel.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02e6a61fe66a385e770c33ab0b62ae5b3e6fdf67b56ed434994f0aceb9d9817"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPruning.sanitize_parameters_to_prune (cognitive 20): ModelPruning.sanitize_parameters_to_prune has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, 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/lightning/pytorch/callbacks/pruning.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fefb5d61bfee32c8b3b0c317943a92f26885d316f94c73acb135e090f3cc1a"}},{"ruleId":"D2","level":"warning","message":{"text":"CometLogger.__init__ (cognitive 20): CometLogger.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 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/lightning/pytorch/loggers/comet.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7add52ce24716b931b61ed9d59cd0df9a15aa743911a2147edc97888093a0b27"}},{"ruleId":"D2","level":"warning","message":{"text":"data._replace_dunder_methods (cognitive 19): data._replace_dunder_methods has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (6 pts), error handling 1 (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":"src/lightning/fabric/utilities/data.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08d42b7e861e37e4316cdcb09758498ae8a1fee68dd64ddc214bc0fd8b01a82"}},{"ruleId":"D2","level":"warning","message":{"text":"LightningModule.to_tensorrt (cognitive 19): LightningModule.to_tensorrt has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (4 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/lightning/pytorch/core/module.py"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b29aff5c7baea01849b33b8c037bf1e53c46cd393d598df16e222c9c87d279"}},{"ruleId":"D2","level":"warning","message":{"text":"_EvaluationLoop.setup_data (cognitive 19): _EvaluationLoop.setup_data has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 3 (4 pts), 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"103cb80a394671093251ae0a3cd1ed3571eb4702a2fbb6e280037b1951fcd036"}},{"ruleId":"D2","level":"warning","message":{"text":"lr_finder._lr_find (cognitive 18): lr_finder._lr_find has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 2 (7 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/lightning/pytorch/tuner/lr_finder.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3ba8c678192d5c2302433bc7a1ccd44a4942c33bf91351ffdc7512046d8bb2"}},{"ruleId":"D2","level":"warning","message":{"text":"XLAFSDPStrategy.save_checkpoint (cognitive 17): XLAFSDPStrategy.save_checkpoint has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/xla_fsdp.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"07431bed8854b22f62b07eb74b48263527b2cdc4ab8b3a94ffa74742da75f37d"}},{"ruleId":"D2","level":"warning","message":{"text":"LightningModule.untoggle_optimizer (cognitive 17): LightningModule.untoggle_optimizer has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (8 pts), if/else 2 (7 pts), boolean chains 2 (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/lightning/pytorch/core/module.py"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30c5a258fce627c6323e2065eeb8cbf55935ef70155b5b1f9c2da0f05b3f9fb"}},{"ruleId":"D2","level":"warning","message":{"text":"configuration_validator.__verify_eval_loop_configuration (cognitive 17): configuration_validator.__verify_eval_loop_configuration has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 3 (6 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/lightning/pytorch/trainer/configuration_validator.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e393a6bd54ab3adf5f79ef3e3f219d3bf32fa28aa6514d417898773c3a73d1"}},{"ruleId":"D2","level":"warning","message":{"text":"setup._init_debugging_flags (cognitive 17): setup._init_debugging_flags has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 2 (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/lightning/pytorch/trainer/setup.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"58609595c0538d912a9feb9ee01bfbe60b86058b62136fa3a21aa0f83987b53f"}},{"ruleId":"D2","level":"warning","message":{"text":"batch_size_scaling._run_power_scaling (cognitive 17): batch_size_scaling._run_power_scaling has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 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/lightning/pytorch/tuner/batch_size_scaling.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3aa60bfaf260fabd56e078a46857e8196f20688c4155706a48e7d13368390ea"}},{"ruleId":"D2","level":"warning","message":{"text":"bitsandbytes._convert_layers (cognitive 16): bitsandbytes._convert_layers has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/bitsandbytes.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44ae928c23a759d7c3c6e0be56dd2f4467ebc6b1a0ec20927dd6b516173ff29"}},{"ruleId":"D2","level":"warning","message":{"text":"data._dataloader_init_kwargs_resolve_sampler (cognitive 16): data._dataloader_init_kwargs_resolve_sampler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 1 (3 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/lightning/fabric/utilities/data.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae6d71ab69fff214190e71819e8c72914c294bc3279060984b6f41e76458755"}},{"ruleId":"D2","level":"warning","message":{"text":"LightningModule.clip_gradients (cognitive 16): LightningModule.clip_gradients has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 4, ternaries 2 (4 pts) (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/lightning/pytorch/core/module.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab50ca0071e72a88d40cee124c6b54b645ba774d0961a7029503ab977bd533c"}},{"ruleId":"D2","level":"warning","message":{"text":"WandbLogger.experiment (cognitive 16): WandbLogger.experiment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 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/lightning/pytorch/loggers/wandb.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a92ed689044b479de1d6179e56e9d36f2b444312af04a4ece30061ed139e6f2"}},{"ruleId":"D2","level":"warning","message":{"text":"_EvaluationLoop._evaluation_step (cognitive 16): _EvaluationLoop._evaluation_step has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 4, if/else 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"8995c6b72450b12c7d85fc62a2b2f04f492fdf34a4e055b881bbd6f1edb80f9c"}},{"ruleId":"D2","level":"warning","message":{"text":"_AcceleratorConnector._check_and_init_precision (cognitive 16): _AcceleratorConnector._check_and_init_precision has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, ternaries 2 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5c29113f1a742e58f24981fe30b04ee78d68e01e3aae2ac1559fb79e544223"}},{"ruleId":"D2","level":"warning","message":{"text":"_AcceleratorConnector._lazy_init_strategy (cognitive 16): _AcceleratorConnector._lazy_init_strategy 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/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e751f349ea4e21fda1dc87dcaa6f2018ae62dfb51ed0ef10d3b0915d5a0cc3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Strategy: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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/lightning/pytorch/strategies/strategy.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"41492249375be71261b6bfa8cca63615e8b5fc1fa179669a7ba552454d70651c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/module.py: FileTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 295 over it, 1.59\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/lightning/pytorch/core/module.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fc0d2a2f4e79acfeea79fd39f87e26f7ac9e2d03a9f8316b36e721fec82ae0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Fabric: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\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/lightning/fabric/fabric.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c393c2af4aa00f6deeea465f106f44f166693c2aa5ae5892407a5081cfcc74c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: trainer/trainer.py: FileTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 189 over it, 1.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/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf039f94d56278993c1e565f77c07cb3fb9f3f2ee7069ed7c3e8d29c17506c1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LightningModule: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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/lightning/pytorch/core/module.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce3e851401bfd82a692d5dc826d439aa6c6de690e88c575de40712c2d524110"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Callback: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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/lightning/pytorch/callbacks/callback.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ab4b8065d5978987d365b16a88a9e21da2384c69df317741d6007e86a803ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: callbacks/model_checkpoint.py: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 132 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/lightning/pytorch/callbacks/model_checkpoint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1456f426444118736a6ed00299813181341f08aec1da27dedc33bae9d2a95978"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: strategies/deepspeed.py: FileTooLong \u2014 605 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 105 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/lightning/pytorch/strategies/deepspeed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ff1b23fbad9547c36e9cb0948586532baa844cba37dcc884883238d0ede06b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelCheckpoint: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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/lightning/pytorch/callbacks/model_checkpoint.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa508b0ab24d41442ee4c65e9139e1d62b03e9ac85d6f9179d15fb76d9229f73"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RichProgressBar: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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/lightning/pytorch/callbacks/progress/rich_progress.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"232c5841a6f84be7637e4c655c4129c4faf17da6c66d12147c67f8042f4263b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: strategies/deepspeed.py: FileTooLong \u2014 580 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 80 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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b836c7091466de06aa8f303982489f16459561399e3a65888008d2d7864cd2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pytorch/cli.py: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 over it, 1.15\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/lightning/pytorch/cli.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"116f57af2280b407a2e84ff043d9a33b130b6be1bf991c4ab41d20f71da87a0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: strategies/fsdp.py: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 75 over it, 1.15\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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d16e2c0d10fc91aa22d58c7317051e6f5ef61c32c4d7cf0f72a74bd8c51c13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: progress/rich_progress.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/lightning/pytorch/callbacks/progress/rich_progress.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5a816c3000f4f4918392c660561ab443bc94ef20c7c803dd771bbcd18e9abc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TQDMProgressBar: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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/lightning/pytorch/callbacks/progress/tqdm_progress.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa4879b969ac0a516ab6577c2b5e6be0655c129bf5052ee1ec9d4ecca00fa34"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (57 shared lines): src/lightning/fabric/connector.py:171-296 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:171-310 \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/lightning/fabric/connector.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e5d43a7c68734d498a3518ccae6ff1bcb8172bcf12b87c2f80200144a60314"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (44 shared lines): src/lightning/fabric/strategies/fsdp.py:530-657 | src/lightning/fabric/strategies/model_parallel.py:422-514 \u2014 These two members are variants of one another: 44 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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"3584ffb6cac36ae86c988075930c2605573adfe86170feaebdbe2d3dda1617ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): src/lightning/fabric/utilities/data.py:84-170 | src/lightning/pytorch/utilities/data.py:144-230 \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":"src/lightning/fabric/utilities/data.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f6e783b6222489ad04dd6a4a0e8978d40d212c58896103c977df9b7da5ce15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (210 corresponding lines): src/lightning/fabric/strategies/deepspeed.py:109-321 | src/lightning/pytorch/strategies/deepspeed.py:129-338 \u2014 These two members are one piece of code written twice and then edited apart: 210 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"12367c48bd3e8d2dd4f189632feb391ec5b66702c3fca1fff3efb426d5215c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): src/lightning/pytorch/loops/evaluation_loop.py:399-471 | src/lightning/pytorch/loops/prediction_loop.py:216-274 \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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"940f4bdeec15982ae0c3408e02ff5003b4b02ac53b9d436dc76ceebc73ba1f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/lightning/fabric/connector.py:501-539 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:511-551 \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/lightning/fabric/connector.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e568a3781606d454e01743831434ceebf24d0a1a359f14c19feee5aab3a50b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/lightning/fabric/connector.py:109-162 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:88-161 \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/lightning/fabric/connector.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2c288015a49d27144c83762a649813e9afb56d97683567383e741339c07b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/lightning/fabric/strategies/launchers/subprocess_script.py:112-145 | src/lightning/pytorch/strategies/launchers/subprocess_script.py:116-149 \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/lightning/fabric/strategies/launchers/subprocess_script.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c50dde3b1729180674ef4a0e1d196ef2ab5beb8d7dc1e8ef946773aa72ff077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/lightning/fabric/strategies/deepspeed.py:786-828 | src/lightning/pytorch/strategies/deepspeed.py:727-771 \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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"878b0a56e4644391477a4d9742b08bd57e40ea7e4edbe013e53fc07dfdc73477"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/lightning/pytorch/strategies/fsdp.py:569-597 | src/lightning/pytorch/strategies/model_parallel.py:305-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/lightning/pytorch/strategies/fsdp.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b51722dd7b68f947a3563a1b02f13c5df6e16660b111ec1969e4873367d6484"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/lightning/fabric/strategies/fsdp.py:286-320 | src/lightning/pytorch/strategies/fsdp.py:302-337 \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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4286426d73a5c1f9fe2202d4e6179d8212afae574754204f0a8a3ad67f003d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/lightning/fabric/connector.py:395-413 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:401-422 \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/lightning/fabric/connector.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac138101420e2b950562df1b75119d9b060304e99b174c67585a5f6f712b5833"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 31\u002B corresponding lines): src/lightning/pytorch/trainer/trainer.py:615-645 | src/lightning/pytorch/trainer/trainer.py:729-763 | src/lightning/pytorch/trainer/trainer.py:848-882 | src/lightning/pytorch/trainer/trainer.py:975-1006 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1af4b1e482c2a43c4444effc005936654250195d92a3ab9d36c987802aab1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/lightning/pytorch/loggers/wandb.py:486-502 | src/lightning/pytorch/loggers/wandb.py:506-528 | src/lightning/pytorch/loggers/wandb.py:532-554 \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/lightning/pytorch/loggers/wandb.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e7011b9d3ec4582299c4b6719601cbb4644465c73217ff08c756152898d2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/lightning/fabric/connector.py:336-360 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:344-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/lightning/fabric/connector.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7b6ec35f74e75b020878854af071f23d88426d33f09c2f93fc033c417c131b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/lightning/fabric/plugins/precision/fsdp.py:86-107 | src/lightning/pytorch/plugins/precision/fsdp.py:96-117 \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/lightning/fabric/plugins/precision/fsdp.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d40e84ec3d9a881980ea7f502a66529c33c3b9909418cb9a4f0a6a843bfe4fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/lightning/pytorch/loops/evaluation_loop.py:121-153 | src/lightning/pytorch/loops/prediction_loop.py:105-131 \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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8035caf49ffe9559d29df168ee3c71347ad563f9123cfdf0d701752c2b061c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/lightning/fabric/accelerators/registry.py:55-85 | src/lightning/fabric/strategies/registry.py:52-82 \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/lightning/fabric/accelerators/registry.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc0f990ff0001b00e00e108cfa54b1d532ca0302bc0259cd48745c841a01dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/lightning/fabric/strategies/ddp.py:124-141 | src/lightning/pytorch/strategies/ddp.py:190-208 \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/lightning/fabric/strategies/ddp.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"90afcaf76bed1d5afa8096a186f2ca568a8a11cd942b03b760cd5931f0a4ea45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/lightning/pytorch/cli.py:190-207 | src/lightning/pytorch/cli.py:215-233 \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/lightning/pytorch/cli.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"104c51dbb6107f77db15c140f6ce0f496e680bc005567f7185f3d36af479d9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): src/lightning/fabric/loggers/csv_logs.py:172-189 | src/lightning/fabric/loggers/tensorboard.py:305-323 | src/lightning/pytorch/loggers/tensorboard.py:244-262 \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/lightning/fabric/loggers/csv_logs.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"28952425b5b049efb4a02ad9f690e3c8e2978e29f2fbfc26eebe00f2e1eb370c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/lightning/fabric/strategies/deepspeed.py:831-842 | src/lightning/pytorch/strategies/deepspeed.py:813-824 \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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0bccacd97ba187d90109134a1071ea2bc43bae8283453009e198db13dd68c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/lightning/fabric/connector.py:299-314 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:313-328 \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/lightning/fabric/connector.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2ae79b527947958ba9dc7eee26560e05decf7678eedf644271d4ee5d49d223"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/lightning/fabric/plugins/precision/amp.py:45-59 | src/lightning/pytorch/plugins/precision/amp.py:65-77 \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/lightning/fabric/plugins/precision/amp.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8564576cee1aa9121b7b28333aa900996dac996b20d2303d537ad16ec9ae7a9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/lightning/pytorch/strategies/deepspeed.py:359-374 | src/lightning/pytorch/strategies/single_xla.py:93-112 | src/lightning/pytorch/strategies/strategy.py:142-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 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/lightning/pytorch/strategies/deepspeed.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b014142bec12146ba4d4cae3b516d6e03af8677bb85579507272b98af53eb9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/lightning/pytorch/strategies/launchers/multiprocessing.py:201-225 | src/lightning/pytorch/strategies/launchers/xla.py:153-176 \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/lightning/pytorch/strategies/launchers/multiprocessing.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d847e678686ad37e4a320c90d05db5d53ff081fb949294ecf203147093e8b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 60\u002B corresponding lines): src/lightning/pytorch/trainer/trainer.py:656-715 | src/lightning/pytorch/trainer/trainer.py:774-834 | src/lightning/pytorch/trainer/trainer.py:893-961 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 60 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/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c82c534d67f92dd8207e3d4b58012c55acf77479789544e4ab6b33c0cd97da7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/lightning/fabric/strategies/launchers/multiprocessing.py:134-145 | src/lightning/pytorch/strategies/launchers/multiprocessing.py:165-179 \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/lightning/fabric/strategies/launchers/multiprocessing.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f9c85cff8cbe0c5cf73ff261c850c4435d36d25437dd7cffffff1b5121f4ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/lightning/fabric/loggers/tensorboard.py:149-161 | src/lightning/pytorch/loggers/tensorboard.py:127-140 \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/lightning/fabric/loggers/tensorboard.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3f02d70d9e70d38b03ae2de53ca0338dc0a792225743b0662caf952d49760b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/lightning/pytorch/callbacks/model_checkpoint.py:489-498 | src/lightning/pytorch/callbacks/model_checkpoint.py:502-519 \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/lightning/pytorch/callbacks/model_checkpoint.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e1131bc021259291c3113d138fe6f9864d9c99b10a5a3944e03ad745869c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/lightning/pytorch/plugins/precision/amp.py:93-117 | src/lightning/pytorch/plugins/precision/fsdp.py:155-174 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/plugins/precision/amp.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"573ba834c693fd9dbbf0343831933976cee4a4395e0e79a2f7d7357687c77138"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/lightning/pytorch/trainer/call.py:162-182 | src/lightning/pytorch/trainer/call.py:318-334 \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/lightning/pytorch/trainer/call.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f3a49e5e1d5a407bfec4af0cab4f18cb40be1203db027510385d76101c5d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/lightning/fabric/strategies/launchers/xla.py:102-116 | src/lightning/pytorch/strategies/launchers/xla.py:132-149 \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/lightning/fabric/strategies/launchers/xla.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9657746f278cc9b12e78dece3449e903a4bf0a40a72bc30eb06fb2fe7311653d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/lightning/fabric/strategies/deepspeed.py:621-638 | src/lightning/pytorch/strategies/deepspeed.py:439-456 \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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"8229a22c3409521a549d3a944481e900ec17ba87de3248217b05be7af0bc1e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/lightning/pytorch/callbacks/weight_averaging.py:338-350 | src/lightning/pytorch/callbacks/weight_averaging.py:353-363 \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/lightning/pytorch/callbacks/weight_averaging.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78977e06322a412030c05fb2bc4d2c3e0a818747f0ffe90105bb33d389ef775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): docs/source-fabric/conf.py:318-326 | docs/source-pytorch/conf.py:527-537 \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":"docs/source-fabric/conf.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45db48ac89e3fece77cf850fd7852ec55971f17c3b459137e869868c2a091de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/lightning/fabric/strategies/fsdp.py:361-374 | src/lightning/pytorch/strategies/fsdp.py:413-428 \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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ab11dc47716460cc0911037a186d8023573739ef92693c7a8e86f16a965626"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): src/lightning/pytorch/strategies/strategy.py:381-391 | src/lightning/pytorch/strategies/strategy.py:402-412 | src/lightning/pytorch/strategies/strategy.py:415-425 | src/lightning/pytorch/strategies/strategy.py:428-438 \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/lightning/pytorch/strategies/strategy.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"390a369c92cc59cfd67f47490e1023a5797946f74709b61d7922a3dfbc57c0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/lightning/fabric/strategies/deepspeed.py:700-715 | src/lightning/pytorch/strategies/deepspeed.py:832-846 \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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"29633ca2aa23f257ff94ce0e5eca2ac9c87f4320c97668a6225d4ea7be047ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/lightning/fabric/strategies/model_parallel.py:170-178 | src/lightning/pytorch/strategies/model_parallel.py:148-159 \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/lightning/fabric/strategies/model_parallel.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb858daad2b96c9df5bb8804977892f2501f91457f48b73404f63d899fe4239"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 61\u002B corresponding lines): src/lightning/__setup__.py:67-131 | src/lightning_fabric/__setup__.py:58-118 | src/pytorch_lightning/__setup__.py:58-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 61 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/lightning/__setup__.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"928b2260c1b6ae014131dd294059fedad6ba1428b368bb06cd22ab0d5eb062c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/lightning/fabric/strategies/registry.py:86-101 | src/lightning/fabric/accelerators/registry.py:89-104 \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/lightning/fabric/strategies/registry.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd44268f6d8daf592e1f2a57e32e85da2683cbb199f27d19cf088675dfd7f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/lightning/pytorch/strategies/model_parallel.py:350-360 | src/lightning/fabric/strategies/ddp.py:234-242 \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/lightning/pytorch/strategies/model_parallel.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52389eb27e35a874e3d3b942e73119ae1af90b12edbcd2773c3d3fba67e44f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/lightning/fabric/strategies/model_parallel.py:105-115 | src/lightning/pytorch/strategies/model_parallel.py:94-101 \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/lightning/fabric/strategies/model_parallel.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b5ba82204d7d2a52b0356ee5593423ae5d36af3cdfbf8310aa5d74af4870b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/lightning/fabric/strategies/ddp.py:262-273 | src/lightning/fabric/strategies/fsdp.py:832-845 | src/lightning/fabric/strategies/xla_fsdp.py:675-687 \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/lightning/fabric/strategies/ddp.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"625da480d7b87ded7807ad0dcde4edc87935c06aae9a77acf76899c685a39875"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/lightning/pytorch/strategies/launchers/multiprocessing.py:76-84 | src/lightning/fabric/strategies/launchers/multiprocessing.py:68-74 \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/lightning/pytorch/strategies/launchers/multiprocessing.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5a860b83d30d1c014bfd1c76ee129e04b38ec84010905d927d2e44502aff20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/lightning/fabric/connector.py:444-450 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:448-454 \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/lightning/fabric/connector.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"519aa1efaa11603c707642934c6cd695894c9fad3ca0a14b1a541d631f5f8c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/lightning/pytorch/strategies/xla.py:59-71 | src/lightning/fabric/strategies/xla.py:51-60 \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/lightning/pytorch/strategies/xla.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"91506d330e336f6b244880e7b1a7cb1d18728b5fb5eff6ea4f6cfff48ab8fffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/lightning/fabric/plugins/precision/amp.py:85-93 | src/lightning/fabric/plugins/precision/fsdp.py:143-149 \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/lightning/fabric/plugins/precision/amp.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3f1f3f502492beef11b5c6132418b2685fd39fb75d9f2cf2e5a8d30b6872a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/lightning/fabric/strategies/fsdp.py:662-675 | src/lightning/pytorch/strategies/fsdp.py:503-518 \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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"e303d4173ed8500752af0ce07a027ab934a5d98bf350da4165d2355c76535707"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/lightning/pytorch/loggers/mlflow.py:331-334 | src/lightning/pytorch/loggers/wandb.py:594-597 \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/lightning/pytorch/loggers/mlflow.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"824ac00bbac4a107bfe6fc9730bfcf49eea74ab3051208a6565260e50422d64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/lightning/fabric/loggers/csv_logs.py:112-120 | src/lightning/pytorch/loggers/csv_logs.py:119-127 \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/lightning/fabric/loggers/csv_logs.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f9504d536b335c7723b419f541a3697b52aac7342f94402d9830b38ab997bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/lightning/fabric/plugins/precision/fsdp.py:119-121 | src/lightning/pytorch/plugins/precision/fsdp.py:129-131 \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/lightning/fabric/plugins/precision/fsdp.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8906caaa28d9b157fe0664d769db77b5f89ec808298fc2ffe6885a0a2d23d6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/lightning/fabric/strategies/fsdp.py:347-357 | src/lightning/fabric/strategies/model_parallel.py:204-211 \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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2528f26553f49e62f34643ac7aefaf1269c72901d5d85431fb998b4ab076e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/lightning/fabric/accelerators/mps.py:58-61 | src/lightning/pytorch/accelerators/mps.py:63-67 \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/lightning/fabric/accelerators/mps.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"484ff8bfa2600c13173fe8bcaf9098aa408f145b825e5beb98378b1f6695685f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/lightning/fabric/plugins/precision/amp.py:75-77 | src/lightning/fabric/plugins/precision/fsdp.py:133-135 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/amp.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d14dd63aa1a34210b8a71e776885db127334d6fcefde72bb2f2496917dd68ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/lightning/fabric/strategies/deepspeed.py:325-327 | src/lightning/pytorch/strategies/deepspeed.py:490-492 \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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8daeb34794c2632752ffa32e46b59e00439d2eca36da6117f44e4b53ff4f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): src/lightning/fabric/strategies/fsdp.py:252-254 | src/lightning/fabric/strategies/model_parallel.py:164-166 | src/lightning/pytorch/strategies/fsdp.py:296-298 | src/lightning/pytorch/strategies/model_parallel.py:142-144 \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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf4097413041dc537de1dd85555f84b2514a93b3ac319e1e7b0abb188589c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/lightning/fabric/strategies/model_parallel.py:154-156 | src/lightning/pytorch/strategies/model_parallel.py:122-124 \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/lightning/fabric/strategies/model_parallel.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e615bcb2c1cf5dc2c13c9de9394628413627f94a7119ac85e16418f117b8b9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/lightning/fabric/strategies/parallel.py:41-43 | src/lightning/pytorch/strategies/parallel.py:42-45 \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/lightning/fabric/strategies/parallel.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9d06aec99a66c025eb642f2b3781272cf7332c1f0f5464f03bc14008f4ca04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/lightning/fabric/strategies/strategy.py:294-306 | src/lightning/pytorch/strategies/strategy.py:175-190 \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/lightning/fabric/strategies/strategy.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"687aaba15b05d49a098d6968aebb4d8cdca1a5dbae1d749efd8fc61d4100de2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/lightning/pytorch/strategies/single_xla.py:71-73 | src/lightning/pytorch/strategies/xla.py:85-87 \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/lightning/pytorch/strategies/single_xla.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cba1f3dace39ac4cf4349bae3a8839b9a7bbd55c294ca3e949ac36caf17d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/lightning/fabric/strategies/ddp.py:205-207 | src/lightning/fabric/strategies/dp.py:107-109 \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/lightning/fabric/strategies/ddp.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac93b43cd633cb2755b3d0a317da24c98eec7c2857799db815cbfb749bb2549"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/lightning/fabric/strategies/deepspeed.py:396-403 | src/lightning/pytorch/strategies/deepspeed.py:544-552 \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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a807fb8a71f20350fb5f000cef04810f58d88316b5308823aa99af5a53066b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): src/lightning/pytorch/utilities/model_summary/model_summary.py:294-294 | src/lightning/pytorch/utilities/model_summary/model_summary_deepspeed.py:78-82 \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":"src/lightning/pytorch/utilities/model_summary/model_summary.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"a459e41055441533da19642d6483fe425a2613cb2c1a258c5603f0bd1658bb70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52\u201353 lines \u00D7 2): src/lightning/fabric/strategies/deepspeed.py:267-319 | src/lightning/pytorch/strategies/deepspeed.py:287-338 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/deepspeed.py\u0060 and \u0060src/lightning/pytorch/strategies/deepspeed.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f5534a16a095923352e89883c0c5cb86cb748f7bfe122d353cb4fb8269d54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): src/lightning/fabric/utilities/data.py:84-133 | src/lightning/pytorch/utilities/data.py:144-193 \u2014 before extracting anything, compare \u0060src/lightning/fabric/utilities/data.py\u0060 and \u0060src/lightning/pytorch/utilities/data.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/utilities/data.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f8b3e29b023de3b7bc4f71c2f9286de3bc264d16361a547ce1de07563e9920"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201336 lines \u00D7 2): src/lightning/fabric/strategies/deepspeed.py:581-616 | src/lightning/pytorch/strategies/deepspeed.py:783-810 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/deepspeed.py\u0060 and \u0060src/lightning/pytorch/strategies/deepspeed.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/lightning/pytorch/strategies/deepspeed.py:782\u0060 calls \u0060register\u0060 and \u0060src/lightning/fabric/strategies/deepspeed.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":"src/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"602a96d388eae996a6ec69a8a6a9f733d3a370d18b47da4995d4b1909e5001a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): src/lightning/fabric/strategies/xla.py:242-273 | src/lightning/fabric/strategies/xla_fsdp.py:376-407 | src/lightning/pytorch/strategies/xla.py:215-246 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/xla.py\u0060 and \u0060src/lightning/fabric/strategies/xla_fsdp.py\u0060 as WHOLE FILES: this scan already matched 5 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 matched lines also transfer control out of the body holding them, 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: \u0060TBroadcast\u0060 names \u0060lightning.fabric.strategies.strategy\u0060 in one and \u0060lightning.pytorch.strategies.strategy\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/lightning/fabric/strategies/xla.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"819bf69f89654024cd7db04c91eeec548f38042631b9219cbc1a7f308d092b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/lightning/fabric/connector.py:171-199 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:171-199 \u2014 before extracting anything, compare \u0060src/lightning/fabric/connector.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/lightning/fabric/connector.py:171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f1c4c6a548cb14472f9e2b2722ef9d2e7e8489609647710d5c120fd305d8bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): src/lightning/fabric/strategies/xla.py:178-204 | src/lightning/fabric/strategies/xla_fsdp.py:312-338 | src/lightning/pytorch/strategies/xla.py:323-349 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/xla.py\u0060 and \u0060src/lightning/fabric/strategies/xla_fsdp.py\u0060 as WHOLE FILES: this scan already matched 5 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 matched lines also transfer control out of the body holding them, which cannot survive a 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/lightning/fabric/strategies/xla.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aec5dc085d7dd96d94049a4c793d0312221602310442a6757980d75d865ca5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/lightning/fabric/utilities/data.py:136-162 | src/lightning/pytorch/utilities/data.py:196-222 \u2014 before extracting anything, compare \u0060src/lightning/fabric/utilities/data.py\u0060 and \u0060src/lightning/pytorch/utilities/data.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060MisconfigurationException\u0060 names \u0060lightning.fabric.utilities.exceptions\u0060 in one and \u0060lightning.pytorch.utilities.exceptions\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/lightning/fabric/utilities/data.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ab19aa25578ca3c134eb4b7e41e271eaf8fd6be0ba9983b7fbf116d32c4917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): src/lightning/fabric/strategies/launchers/subprocess_script.py:115-139 | src/lightning/pytorch/strategies/launchers/subprocess_script.py:120-143 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/launchers/subprocess_script.py\u0060 and \u0060src/lightning/pytorch/strategies/launchers/subprocess_script.py\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/launchers/subprocess_script.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62ea1e374e2b34f6ff90148b3ca277827c82af34174e40af2bc4fb05b3a12c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/lightning/fabric/strategies/deepspeed.py:242-265 | src/lightning/pytorch/strategies/deepspeed.py:263-286 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/deepspeed.py\u0060 and \u0060src/lightning/pytorch/strategies/deepspeed.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/lightning/fabric/strategies/deepspeed.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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccc3742b2a9a425b1c3133ba7eff29fe5324b88f2353dda0f09fa0a63d2ee1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/lightning/fabric/plugins/precision/fsdp.py:54-76 | src/lightning/pytorch/plugins/precision/fsdp.py:54-76 \u2014 before extracting anything, compare \u0060src/lightning/fabric/plugins/precision/fsdp.py\u0060 and \u0060src/lightning/pytorch/plugins/precision/fsdp.py\u0060 as WHOLE FILES: 82% 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":"src/lightning/fabric/plugins/precision/fsdp.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6d244e8d3aec2dd1f001389a1e96c68dd0250f78d4d28961666231701c28f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): src/lightning/pytorch/utilities/model_summary/model_summary.py:360-381 | src/lightning/pytorch/utilities/model_summary/model_summary_deepspeed.py:90-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/lightning/pytorch/utilities/model_summary/model_summary.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aee51629082982e02d49b1069d7677242f8f58bf1a783955826b4b7c6819b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201320 lines \u00D7 3): src/lightning/pytorch/loggers/wandb.py:486-499 | src/lightning/pytorch/loggers/wandb.py:506-525 | src/lightning/pytorch/loggers/wandb.py:532-551 \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/lightning/pytorch/loggers/wandb.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f189e48a7055323f8dbe82c0cef9d5b2f235263d83a0238abd6fc24f1745e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/lightning_fabric/__setup__.py:33-54 | src/pytorch_lightning/__setup__.py:33-54 \u2014 \u0060src/lightning_fabric/__setup__.py\u0060 and \u0060src/pytorch_lightning/__setup__.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 36 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/lightning_fabric/__setup__.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5659e9936d23f4c3c3aaa5da5387a9ef9fca71588c5d7f8b69f103e87e6a608c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): src/lightning/fabric/strategies/xla.py:210-227 | src/lightning/fabric/strategies/xla_fsdp.py:344-361 | src/lightning/pytorch/strategies/xla.py:255-273 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/xla.py\u0060 and \u0060src/lightning/fabric/strategies/xla_fsdp.py\u0060 as WHOLE FILES: this scan already matched 5 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/lightning/fabric/strategies/xla.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa9e723d66cf1f26a2fedf5d2b7241ca8183623b2ca46b6a49650688e4612e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/lightning/fabric/plugins/precision/xla.py:40-57 | src/lightning/pytorch/plugins/precision/xla.py:42-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060precision\u0060 to \u0060_PRECISION_INPUT\u0060 in one and \u0060_PRECISION_INPUT = \u002232-true\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/lightning/fabric/plugins/precision/xla.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"89df97326e7190664d68cd305ba6eb34b53672ab51bb0768b5574a5a90225497"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/lightning/fabric/utilities/data.py:190-207 | src/lightning/pytorch/utilities/data.py:269-286 \u2014 before extracting anything, compare \u0060src/lightning/fabric/utilities/data.py\u0060 and \u0060src/lightning/pytorch/utilities/data.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/lightning/fabric/utilities/data.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/data.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a807787f23cefc2059e8d2c8115f8291b0a1e15ef487bd6611f75536a18b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/lightning/fabric/connector.py:214-230 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:213-229 \u2014 before extracting anything, compare \u0060src/lightning/fabric/connector.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060Accelerator\u0060 names \u0060lightning.fabric.accelerators.accelerator\u0060 in one and \u0060lightning.pytorch.accelerators.accelerator\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/lightning/fabric/connector.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b922390a9ce5e8b237598eed22d2dab6904eb2c4969c145cb1f0e7bb23a141b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/lightning/fabric/loggers/tensorboard.py:307-323 | src/lightning/pytorch/loggers/tensorboard.py:246-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. The matched lines also transfer control out of the body holding them, which cannot survive a 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/lightning/fabric/loggers/tensorboard.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b4e11efb14ee892249f030e1118f2dc16e6d240783cfc5a808a40b4fcab07a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/lightning/fabric/plugins/precision/bitsandbytes.py:278-294 | src/lightning/fabric/plugins/precision/bitsandbytes.py:360-376 \u2014 both copies are in the same file, so extract the block into one function there 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/lightning/fabric/plugins/precision/bitsandbytes.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec7a09529a8f5af817a423854e6a8f66dc412a3ea64c17d9e738e3fa907018a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/lightning/pytorch/loops/evaluation_loop.py:399-415 | src/lightning/pytorch/loops/prediction_loop.py:216-232 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf62ccf3c5866af61d3e7b37f5c794b079102380361623e26023955ea70cf54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/lightning/fabric/connector.py:363-378 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:369-384 \u2014 before extracting anything, compare \u0060src/lightning/fabric/connector.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060CUDAAccelerator\u0060 names \u0060lightning.fabric.accelerators.cuda\u0060 in one and \u0060lightning.pytorch.accelerators.cuda\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/lightning/fabric/connector.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"f816595691678b020eb9f0f0bdc27708c2f8d6ceee5cd11808c8de48055285cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/lightning/fabric/strategies/fsdp.py:555-570 | src/lightning/fabric/strategies/model_parallel.py:430-445 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/fsdp.py\u0060 and \u0060src/lightning/fabric/strategies/model_parallel.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a459eb52212d3569e3e12534ede9ba301e0d3b12caf232212b08a14447a1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/lightning/fabric/connector.py:399-413 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:408-422 \u2014 before extracting anything, compare \u0060src/lightning/fabric/connector.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060CUDAAccelerator\u0060 names \u0060lightning.fabric.accelerators.cuda\u0060 in one and \u0060lightning.pytorch.accelerators.cuda\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/lightning/fabric/connector.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"707e0de1b5c124df3eae6ee20d73ffa333ec21085a952c653a40089ba6e43364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/lightning/fabric/plugins/precision/fsdp.py:86-100 | src/lightning/pytorch/plugins/precision/fsdp.py:96-110 \u2014 before extracting anything, compare \u0060src/lightning/fabric/plugins/precision/fsdp.py\u0060 and \u0060src/lightning/pytorch/plugins/precision/fsdp.py\u0060 as WHOLE FILES: 82% 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":"src/lightning/fabric/plugins/precision/fsdp.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4207e9a622d037377215256d33d7a40a6a9f1cc55c90cce68c942d2cae2602a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/lightning/fabric/strategies/deepspeed.py:661-675 | src/lightning/pytorch/strategies/deepspeed.py:377-391 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/deepspeed.py\u0060 and \u0060src/lightning/pytorch/strategies/deepspeed.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7df454c80e596b6740175781e7a833f924dd3981507eca281af78a295af687b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/lightning/fabric/strategies/fsdp.py:598-612 | src/lightning/fabric/strategies/model_parallel.py:459-473 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/fsdp.py\u0060 and \u0060src/lightning/fabric/strategies/model_parallel.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call 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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"588cc6394b76049d796a70892b88182d878d2fc06f9a478f7743d450084addcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/lightning/fabric/strategies/fsdp.py:645-657 | src/lightning/fabric/strategies/model_parallel.py:500-514 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/fsdp.py\u0060 and \u0060src/lightning/fabric/strategies/model_parallel.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/lightning/fabric/strategies/model_parallel.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. The matched lines also transfer control out of the body holding them, 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/lightning/fabric/strategies/fsdp.py:643\u0060 calls \u0060load_state_dict\u0060, \u0060keys\u0060 and \u0060src/lightning/fabric/strategies/model_parallel.py:500\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9fa1a98e96452130602a1eeb2ae43421b66298e773a32f6427a6309dec5f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/lightning/pytorch/trainer/trainer.py:729-743 | src/lightning/pytorch/trainer/trainer.py:848-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/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"0949ebde5d0d230d9fb7e2cb4d4f9d5a45803329a794b66a9a483882d62a0520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/lightning/fabric/strategies/single_xla.py:38-51 | src/lightning/pytorch/strategies/single_xla.py:44-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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: \u0060SingleDeviceStrategy\u0060 names \u0060lightning.fabric.strategies.single_device\u0060 in one and \u0060lightning.pytorch.strategies.single_device\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/lightning/fabric/strategies/single_xla.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfabf026da0389ef419e65847180e269562a9b41adf77d87cb75ff2065aa5017"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): src/lightning/pytorch/strategies/ddp.py:211-221 | src/lightning/pytorch/strategies/fsdp.py:262-275 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/lightning/pytorch/strategies/fsdp.py:278\u0060 calls \u0060isinstance\u0060, \u0060get\u0060, \u0060init_device_mesh\u0060 and \u0060src/lightning/pytorch/strategies/ddp.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":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b29b3c06792e92d239716582404a5a9d84f646c68b4954d4c64548dc87eb495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/lightning/fabric/connector.py:299-310 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:313-324 \u2014 before extracting anything, compare \u0060src/lightning/fabric/connector.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060Accelerator\u0060 names \u0060lightning.fabric.accelerators.accelerator\u0060 in one and \u0060lightning.pytorch.accelerators.accelerator\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/lightning/fabric/connector.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ba5e7defd80987a0e083a6bf7114f972beda0fa4f84d0b9c1f1009274b97af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/lightning/fabric/connector.py:505-516 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:515-526 \u2014 before extracting anything, compare \u0060src/lightning/fabric/connector.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/connector.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2d48e44f67a1c3b3254fe7f457223f205d9e56ef2ce2ac5e267f4c554c5496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/lightning/fabric/strategies/ddp.py:129-140 | src/lightning/pytorch/strategies/ddp.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/lightning/fabric/strategies/ddp.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc64200207d4c20f84d4fc9ef8a078f6fa5b2ac35b7dfd738cb01853b1c9580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/lightning/fabric/strategies/deepspeed.py:686-697 | src/lightning/pytorch/strategies/deepspeed.py:555-566 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/deepspeed.py\u0060 and \u0060src/lightning/pytorch/strategies/deepspeed.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"662830725ad2022926131f02786ec89f533c2a3bba205061a78033a62e71bb47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/lightning/fabric/strategies/deepspeed.py:797-808 | src/lightning/pytorch/strategies/deepspeed.py:740-751 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/deepspeed.py\u0060 and \u0060src/lightning/pytorch/strategies/deepspeed.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c1c69d4eb94fb575f8e3e43b698d46c55817067cff502a991239f98a0d4b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/lightning/pytorch/strategies/fsdp.py:580-591 | src/lightning/pytorch/strategies/model_parallel.py:316-326 \u2014 before extracting anything, compare \u0060src/lightning/pytorch/strategies/fsdp.py\u0060 and \u0060src/lightning/pytorch/strategies/model_parallel.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/fsdp.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"3846582ecf5a8a165851369e7b8e3909babce29791b8165cd1e45c505d1bbe83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/lightning/fabric/fabric.py:286-296 | src/lightning/fabric/fabric.py:356-366 \u2014 both copies are in the same file, so extract the block 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/lightning/fabric/fabric.py:298\u0060 calls \u0060_FabricOptimizer\u0060 and \u0060src/lightning/fabric/fabric.py:368\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/fabric.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c1a57274042c8800192dcf01cf7cfd7fc1113b77cd4e2c8edbc02f2b273a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/lightning/pytorch/loops/evaluation_loop.py:188-198 | src/lightning/pytorch/loops/fit_loop.py:250-260 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ae1f670c430db6049af1fb0bdeb555c9f08811a4a72274351eb17914f78445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/lightning/pytorch/utilities/model_summary/model_summary.py:322-332 | src/lightning/pytorch/utilities/model_summary/model_summary_deepspeed.py:58-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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/utilities/model_summary/model_summary.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"490248f7d2a4913c5f804cbe1ee7815aae8e996ceade2b2469cb63aac1e087a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/lightning/fabric/strategies/launchers/multiprocessing.py:134-142 | src/lightning/pytorch/strategies/launchers/multiprocessing.py:165-173 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/launchers/multiprocessing.py\u0060 and \u0060src/lightning/pytorch/strategies/launchers/multiprocessing.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060CPUAccelerator\u0060 names \u0060lightning.fabric.accelerators.cpu\u0060 in one and \u0060lightning.pytorch.accelerators\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/lightning/pytorch/strategies/launchers/multiprocessing.py:176\u0060 calls \u0060_collect_rank_zero_results\u0060 and \u0060src/lightning/fabric/strategies/launchers/multiprocessing.py:144\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/launchers/multiprocessing.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"767f013e4683d57848a75d1c058970c106ba76077d468ba64975d01975b74dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/lightning/fabric/strategies/model_parallel.py:170-178 | src/lightning/pytorch/strategies/model_parallel.py:148-156 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/lightning/fabric/strategies/model_parallel.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de30d1dd96294fbbc73502367ffd0883cca32f82e893631e1d7671431c286cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/lightning/pytorch/callbacks/weight_averaging.py:338-346 | src/lightning/pytorch/callbacks/weight_averaging.py:353-361 \u2014 both copies are in the same file, so extract the block into one function there 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/lightning/pytorch/callbacks/weight_averaging.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb31021b7778e8d2381c87b848328013daebbf0ef815af07d420ee571d49436a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/lightning/pytorch/trainer/trainer.py:752-760 | src/lightning/pytorch/trainer/trainer.py:871-879 \u2014 both copies are in the same file, so extract the block into one function there 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/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"166d0d5d66150734e25acaa4c13f5fa8bd58430be4bd4e6bdcbda6753b390863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/lightning/fabric/plugins/precision/bitsandbytes.py:231-238 | src/lightning/fabric/plugins/precision/bitsandbytes.py:319-326 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/bitsandbytes.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed6f39210e3ac89d3324340091ce4875df269ac2c3317f5c899c546802bc9bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/lightning/fabric/strategies/launchers/multiprocessing.py:105-112 | src/lightning/pytorch/strategies/launchers/multiprocessing.py:119-131 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/launchers/multiprocessing.py\u0060 and \u0060src/lightning/pytorch/strategies/launchers/multiprocessing.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/lightning/pytorch/strategies/launchers/multiprocessing.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/lightning/fabric/strategies/launchers/multiprocessing.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"26810fe8af442bbd22d5e38a63e9807e41e295c7e13420318955bf59ffa3853e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/lightning_fabric/__setup__.py:58-65 | src/pytorch_lightning/__setup__.py:58-64 \u2014 \u0060src/lightning_fabric/__setup__.py\u0060 and \u0060src/pytorch_lightning/__setup__.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 36 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/lightning_fabric/__setup__.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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning_fabric/__setup__.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"458e298877af08f49b396ed699fdcb28c67bc7954b983144bd7e2cb352ef9ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/lightning/pytorch/trainer/trainer.py:750-756 | src/lightning/pytorch/trainer/trainer.py:869-875 | src/lightning/pytorch/trainer/trainer.py:995-1001 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/lightning/pytorch/trainer/trainer.py:758\u0060 calls \u0060convert_tensors_to_scalars\u0060 and \u0060src/lightning/pytorch/trainer/trainer.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":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a84d324940876189ade8ed5e21236463fc5bb8e6dc4b29aa24254b07f000089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/lightning/fabric/connector.py:285-290 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:299-304 \u2014 before extracting anything, compare \u0060src/lightning/fabric/connector.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/lightning/fabric/connector.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/lightning/fabric/connector.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0401d7161fb8836525a126a528965c56ebe8eebe30a2df62961a0bb2962eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/lightning/fabric/connector.py:279-283 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:291-297 \u2014 before extracting anything, compare \u0060src/lightning/fabric/connector.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"501ab0abda11b91ca63c5ea125a892a2ef6a5052cccb5daa90b78225e31648ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/lightning/fabric/strategies/deepspeed.py:678-683 | src/lightning/pytorch/strategies/deepspeed.py:394-399 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/deepspeed.py\u0060 and \u0060src/lightning/pytorch/strategies/deepspeed.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ecc287b9040c9ccf8d5a7face565d492f1b8ca2bf55cf9d7ff4a4b86db54d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/lightning/pytorch/cli.py:202-206 | src/lightning/pytorch/cli.py:228-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":"src/lightning/pytorch/cli.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3045f507c5b1336e4818c1cd5188cf879410286d2eff0434d9dd9faea521ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): setup.py:71-76 | src/lightning/__setup__.py:18-23 | src/lightning_fabric/__setup__.py:19-24 | src/pytorch_lightning/__setup__.py:19-24 \u2014 \u0060src/lightning_fabric/__setup__.py\u0060 and \u0060src/pytorch_lightning/__setup__.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 36 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/lightning_fabric/__setup__.py:14\u0060 calls \u0060join\u0060 and \u0060setup.py:66\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"setup.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"408d38e1e98ef02b57d011475c131f1b78e742361e9dfa2e95865c8ed8981a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/lightning/fabric/connector.py:381-392 | src/lightning/pytorch/trainer/connectors/accelerator_connector.py:387-398 \u2014 before extracting anything, compare \u0060src/lightning/fabric/connector.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/lightning/pytorch/trainer/connectors/accelerator_connector.py:402\u0060 calls \u0060MisconfigurationException\u0060 and \u0060src/lightning/fabric/connector.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":"src/lightning/fabric/connector.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"842a536d541f44e6fefc081dc99d858ee81439961515f0a0c6a88e63321e922f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/lightning/fabric/plugins/precision/deepspeed.py:47-62 | src/lightning/pytorch/plugins/precision/deepspeed.py:56-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/deepspeed.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c03c0a4c0d9c8d076959f58d52fb601f51b4677950ac05bcfc1e270acad2ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/lightning/fabric/strategies/ddp.py:111-115 | src/lightning/pytorch/strategies/ddp.py:146-150 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/lightning/fabric/strategies/ddp.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e134269599f67d42b115b7b62813e3ae63396c7c59224dfc9f634d87469be64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/lightning/fabric/strategies/ddp.py:188-193 | src/lightning/fabric/strategies/fsdp.py:395-400 | src/lightning/fabric/strategies/model_parallel.py:232-237 | src/lightning/pytorch/strategies/ddp.py:321-326 | src/lightning/pytorch/strategies/fsdp.py:441-446 | src/lightning/pytorch/strategies/model_parallel.py:226-231 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/fsdp.py\u0060 and \u0060src/lightning/fabric/strategies/model_parallel.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call 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/lightning/fabric/strategies/ddp.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f84819cb5573393d3c70aa1f9e098947d689e1cc6f2176c9a1aee51b957e46f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/lightning/fabric/strategies/ddp.py:248-253 | src/lightning/fabric/strategies/fsdp.py:693-698 | src/lightning/fabric/strategies/model_parallel.py:322-327 | src/lightning/pytorch/strategies/ddp.py:227-232 | src/lightning/pytorch/strategies/fsdp.py:287-292 | src/lightning/pytorch/strategies/model_parallel.py:366-371 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/fsdp.py\u0060 and \u0060src/lightning/fabric/strategies/model_parallel.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/ddp.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d33ec30f28718a45d3269ba59d1e4cb0a09aa9d40b0646f626d6225cf8a9f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/lightning/fabric/strategies/deepspeed.py:642-647 | src/lightning/pytorch/strategies/deepspeed.py:342-347 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/deepspeed.py\u0060 and \u0060src/lightning/pytorch/strategies/deepspeed.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"072c51917c06784dbaf8b76abb8396da5a77ed52a39edc5b5c5b615296f69cc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/lightning/fabric/strategies/fsdp.py:386-391 | src/lightning/fabric/strategies/model_parallel.py:223-228 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/fsdp.py\u0060 and \u0060src/lightning/fabric/strategies/model_parallel.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call 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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"8408eb6ab1bcfde6cebf7150159d75faf7a74a92a15a7f195945c9fa1bed9f64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/lightning/fabric/strategies/fsdp.py:678-687 | src/lightning/fabric/strategies/model_parallel.py:307-316 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/fsdp.py\u0060 and \u0060src/lightning/fabric/strategies/model_parallel.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"718efde64c94259ac883469f2cd2c4e4e4e8c5bf648f2f3e14aec24b64580ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/lightning/fabric/strategies/launchers/multiprocessing.py:174-180 | src/lightning/pytorch/strategies/launchers/multiprocessing.py:308-314 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/launchers/multiprocessing.py\u0060 and \u0060src/lightning/pytorch/strategies/launchers/multiprocessing.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/lightning/fabric/strategies/launchers/multiprocessing.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"267feab78809e3deb6a1d348311cca034ffedbeace78a5ec38c617feeaf657ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/lightning/fabric/strategies/launchers/multiprocessing.py:183-188 | src/lightning/pytorch/strategies/launchers/multiprocessing.py:317-322 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/launchers/multiprocessing.py\u0060 and \u0060src/lightning/pytorch/strategies/launchers/multiprocessing.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/launchers/multiprocessing.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"46af9fd74e880a42e84ad77c12d3933a2c51a682e0bcaa3d13d7f2ae32c4f24b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/lightning/fabric/strategies/launchers/subprocess_script.py:80-84 | src/lightning/pytorch/strategies/launchers/subprocess_script.py:76-80 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/launchers/subprocess_script.py\u0060 and \u0060src/lightning/pytorch/strategies/launchers/subprocess_script.py\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/launchers/subprocess_script.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c4f70bf2b017223f32a77b223e960117599acfdd36e524a8eab5bb92d040ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/lightning/fabric/strategies/launchers/subprocess_script.py:93-108 | src/lightning/pytorch/strategies/launchers/subprocess_script.py:89-105 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/launchers/subprocess_script.py\u0060 and \u0060src/lightning/pytorch/strategies/launchers/subprocess_script.py\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file 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/lightning/fabric/strategies/launchers/subprocess_script.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a3cda6d85a6372863803e5f80e8b51b8845bc19a72dba98942db652e5067bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/lightning/fabric/strategies/launchers/subprocess_script.py:148-155 | src/lightning/pytorch/strategies/launchers/subprocess_script.py:152-159 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/launchers/subprocess_script.py\u0060 and \u0060src/lightning/pytorch/strategies/launchers/subprocess_script.py\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060ClusterEnvironment\u0060 names \u0060lightning.fabric.plugins\u0060 in one and \u0060lightning.fabric.plugins.environments.cluster_environment\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/lightning/fabric/strategies/launchers/subprocess_script.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"feecad6725838359e350cafc5168f75ff089844b39cd3e89eca503fb336e19f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/lightning/fabric/strategies/single_device.py:39-45 | src/lightning/pytorch/strategies/single_device.py:42-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/lightning/fabric/strategies/single_device.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"95645eb9db110bc871095724f06f8ecc3bd5d772d9058efe30fa17e31f4423c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/lightning/fabric/strategies/xla.py:133-144 | src/lightning/fabric/strategies/xla_fsdp.py:185-196 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/xla.py\u0060 and \u0060src/lightning/fabric/strategies/xla_fsdp.py\u0060 as WHOLE FILES: this scan already matched 5 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/lightning/fabric/strategies/xla.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f556fbc1707c4e40341651cd3eadb15c28f5732098429080c7fd18ce287384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/lightning/fabric/strategies/xla.py:164-174 | src/lightning/fabric/strategies/xla_fsdp.py:244-254 | src/lightning/pytorch/strategies/xla.py:180-190 \u2014 before extracting anything, compare \u0060src/lightning/fabric/strategies/xla.py\u0060 and \u0060src/lightning/fabric/strategies/xla_fsdp.py\u0060 as WHOLE FILES: this scan already matched 5 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 matched lines also transfer control out of the body holding them, 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 \u0060dataloader\u0060 to \u0060DataLoader\u0060 in one and \u0060object\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/lightning/fabric/strategies/xla.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3170658445f90794ff82a1a57477151815d96e6a58d54234499f3f60aa4760b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/lightning/pytorch/loops/evaluation_loop.py:474-489 | src/lightning/pytorch/loops/prediction_loop.py:277-292 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"017e792d5d768f7f9724dd8dd3e34a128bde31c924c9c5c133dda360fc452d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/lightning/pytorch/loops/evaluation_loop.py:492-497 | src/lightning/pytorch/loops/prediction_loop.py:295-300 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fc2c99cb841bc84a82db50c9371737281a1e6c5738bf70c8aaf579c70f3be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/lightning/pytorch/strategies/fsdp.py:432-437 | src/lightning/pytorch/strategies/model_parallel.py:217-222 \u2014 before extracting anything, compare \u0060src/lightning/pytorch/strategies/fsdp.py\u0060 and \u0060src/lightning/pytorch/strategies/model_parallel.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call 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/lightning/pytorch/strategies/fsdp.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4abadcae29702d85ec01e0067b2cc9eaf47491618a0c61f540bba26bccbb90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/lightning/fabric/accelerators/cuda.py:30-38 | src/lightning/pytorch/accelerators/cuda.py:39-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/lightning/pytorch/accelerators/cuda.py:31\u0060 calls \u0060getLogger\u0060 and \u0060src/lightning/fabric/accelerators/cuda.py:22\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/accelerators/cuda.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eef5fa7ed4f075d5a28155e45e1538b530accc096dd375ff8888025c7853272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/lightning/fabric/strategies/parallel.py:90-108 | src/lightning/pytorch/strategies/parallel.py:96-114 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/lightning/fabric/strategies/parallel.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f951de59ecfbf30582df898ee67cfb6481fd0d8c6edd37e87f3c494e2028dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 13 shared lines): examples/fabric/reinforcement_learning/train_fabric.py:67-205 | examples/fabric/reinforcement_learning/train_fabric_decoupled.py:43-211 | examples/fabric/reinforcement_learning/train_torch.py:112-270 \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":"examples/fabric/reinforcement_learning/train_fabric.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7291e3facb2c992c4bbd6a990aed1cca98198950a3341c00be57093b5f9a062b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (145 corresponding lines): examples/fabric/dcgan/train_fabric.py:51-195 | examples/fabric/dcgan/train_torch.py:50-203 \u2014 These two members are one piece of code written twice and then edited apart: 145 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/dcgan/train_fabric.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aa10c1cdc330c551dd21661e169bc8159b9a879c0c1ffedd3f65f41913199a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (97 corresponding lines): examples/fabric/meta_learning/train_fabric.py:64-160 | examples/fabric/meta_learning/train_torch.py:67-177 \u2014 These two members are one piece of code written twice and then edited apart: 97 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/meta_learning/train_fabric.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"005414a799ff373e4b1c782a51d6a2c04c33f483923704f0e4e797b2d8a38ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/fabric/reinforcement_learning/rl/agent.py:17-43 | examples/fabric/reinforcement_learning/rl/agent.py:109-143 \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/fabric/reinforcement_learning/rl/agent.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"77853126909ead82b84a64ba6f36e7af646bb2e9ac61ffa380a4287fc052b985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/fabric/meta_learning/train_fabric.py:31-49 | examples/fabric/meta_learning/train_torch.py:34-53 \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/fabric/meta_learning/train_fabric.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02ca69f685064d088e283e03a13c2795a3a36845a2de44a8cd73564c1d5f135"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/fabric/tensor_parallel/model.py:39-57 | examples/pytorch/tensor_parallel/model.py:39-57 \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/fabric/tensor_parallel/model.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e26ce4a861168a694f63ee0ee7e18280fd6dc837f6fcf90f8f58c690a8e7e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): examples/pytorch/basics/autoencoder.py:180-191 | examples/pytorch/basics/backbone_image_classifier.py:129-135 \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/pytorch/basics/autoencoder.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c5ea81bf858ac49548175eb05ed9e7189861abbf78b129a68361c2791d8d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): examples/pytorch/domain_templates/computer_vision_fine_tuning.py:227-238 | examples/pytorch/domain_templates/computer_vision_fine_tuning.py:242-251 \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/pytorch/domain_templates/computer_vision_fine_tuning.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b554a78a1f3f9d528bf82ee09e0ac84c77c6b29e2112960c8af563fae73778"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/fabric/tensor_parallel/model.py:187-189 | examples/pytorch/tensor_parallel/model.py:187-189 \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/fabric/tensor_parallel/model.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"652de395a108b533d2c59e0d01ca8f5bc4328da992da6f809e3e07705a9db3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/fabric/tensor_parallel/model.py:268-270 | examples/pytorch/tensor_parallel/model.py:268-270 \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/fabric/tensor_parallel/model.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e50d6f9b52f45f27e4e3971d49a074233ad2bc341c852e861692d8d528936a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): examples/pytorch/basics/profiler_example.py:87-88 | examples/pytorch/servable_module/production.py:49-50 \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/pytorch/basics/profiler_example.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eecb8d182c6a5707c26936d4aa0915f381ec9ee0c7f897654996b6994cdb2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): examples/pytorch/basics/profiler_example.py:91-92 | examples/pytorch/servable_module/production.py:53-54 \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/pytorch/basics/profiler_example.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff527d6e512595f36127c1b0d211e80048ee8718786147ef7d1bd7bcad1be19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): examples/fabric/meta_learning/train_fabric.py:26-27 | examples/fabric/meta_learning/train_torch.py:29-30 \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/fabric/meta_learning/train_fabric.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f0798ede27a9339a60003367db4c469b2ffa8ebb529f74f2eff3f94c90da60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): examples/fabric/tensor_parallel/model.py:333-336 | examples/pytorch/tensor_parallel/model.py:333-336 \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/fabric/tensor_parallel/model.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f212fecc327b09ce0ce7b56aaf06212ca235dad31ce90324aece38f8669cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): examples/pytorch/basics/profiler_example.py:70-73 | examples/pytorch/servable_module/production.py:36-39 \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/pytorch/basics/profiler_example.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8733089bd24304897a0627c624fb0b405e0c7087df7925de5390434a46a63598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/pytorch/domain_templates/reinforce_learn_Qnet.py:380-382 | examples/pytorch/domain_templates/reinforce_learn_ppo.py:433-435 \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/pytorch/domain_templates/reinforce_learn_Qnet.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6f1e68c011130050ddbe763afc323569e432ad41decee9de241003a525aaa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (87 lines \u00D7 2): examples/fabric/tensor_parallel/parallelism.py:20-106 | examples/pytorch/tensor_parallel/parallelism.py:20-106 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/parallelism.py\u0060 and \u0060examples/pytorch/tensor_parallel/parallelism.py\u0060 as WHOLE FILES: 100% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/fabric/tensor_parallel/parallelism.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"03646c9dc26f122f00043025caf161a4038cd62e360290ea453deeca38fd7089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): examples/fabric/reinforcement_learning/train_fabric.py:147-184 | examples/fabric/reinforcement_learning/train_fabric_decoupled.py:137-174 \u2014 before extracting anything, compare \u0060examples/fabric/reinforcement_learning/train_fabric.py\u0060 and \u0060examples/fabric/reinforcement_learning/train_fabric_decoupled.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/reinforcement_learning/train_fabric.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbeb151cb1673f665445e62428984f25339444dd372f2eecdb1cb156c8ba6c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:388-415 | examples/pytorch/tensor_parallel/model.py:388-415 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/fabric/tensor_parallel/model.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/tensor_parallel/model.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a24da7a6c4f2b861d7072b263be060a07fd4fb584cda3c0fb52533ae17de69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:358-381 | examples/pytorch/tensor_parallel/model.py:358-381 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/tensor_parallel/model.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff821b7fd081d4d8142138ad748b327d2695dd4cf60d619f23eb93acb244ff70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/fabric/dcgan/train_fabric.py:210-232 | examples/fabric/dcgan/train_torch.py:218-240 \u2014 before extracting anything, compare \u0060examples/fabric/dcgan/train_fabric.py\u0060 and \u0060examples/fabric/dcgan/train_torch.py\u0060 as WHOLE FILES: this scan already matched 5 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":"examples/fabric/dcgan/train_fabric.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbbe123bf74a682fe12081b15d658674049171bc7784d5e4479f812af175605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:61-83 | examples/pytorch/tensor_parallel/model.py:61-83 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/tensor_parallel/model.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd75ba48517843d2b9ed7a49a53369e59ce98828efc1b70b52138cf6e9441c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/fabric/reinforcement_learning/rl/agent.py:24-43 | examples/fabric/reinforcement_learning/rl/agent.py:121-140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/fabric/reinforcement_learning/rl/agent.py:141\u0060 calls \u0060MeanMetric\u0060 and \u0060examples/fabric/reinforcement_learning/rl/agent.py:45\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/reinforcement_learning/rl/agent.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d927a2008faa70c9d44d9856663f79238980c3a48a79a9912e37ae2e9a782a7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:293-312 | examples/pytorch/tensor_parallel/model.py:293-312 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/tensor_parallel/model.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea3f069c0b0041f6700f386330af795206200fe0bdd420904742fa6125eca93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:196-227 | examples/pytorch/tensor_parallel/model.py:196-227 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/fabric/tensor_parallel/model.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bd7ec173f70578727302be8390bd7ad5e498a05b03942da74a6ec14b842d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): examples/fabric/image_classifier/train_fabric.py:111-126 | examples/fabric/kfold_cv/train_fabric.py:60-76 \u2014 \u0060examples/fabric/image_classifier/train_fabric.py\u0060 and \u0060examples/fabric/kfold_cv/train_fabric.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 36 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/fabric/image_classifier/train_fabric.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6148076e461293806ebe14541a569fe24c3c98c45279da4bcba188c4082160ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:39-55 | examples/pytorch/tensor_parallel/model.py:39-55 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/fabric/tensor_parallel/model.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":"examples/fabric/tensor_parallel/model.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32781fbdb6aea57eb78adf253329e7a11ed1e8c330b70f3921d410536f6278e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:91-112 | examples/pytorch/tensor_parallel/model.py:91-112 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/tensor_parallel/model.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b695c7e1d25bdff80c881f5723a80070e3425b07c8c9b551334f2fb92972c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:427-443 | examples/pytorch/tensor_parallel/model.py:427-443 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/fabric/tensor_parallel/model.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be5b5a943f29a7dc1956e199cc83157321d657627055b9547738d837d0123d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): examples/fabric/meta_learning/train_fabric.py:87-102 | examples/fabric/meta_learning/train_torch.py:103-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 both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/meta_learning/train_fabric.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9458307e1b460d86dec3df8fa40bb60707b00155ac6a077e291cbad1d2b2eff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/fabric/meta_learning/train_fabric.py:34-49 | examples/fabric/meta_learning/train_torch.py:38-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":"examples/fabric/meta_learning/train_fabric.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e110472c17318ced42392e86a4ffe3757099a449036683887dd5c7f6c8475e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): examples/fabric/reinforcement_learning/train_fabric.py:89-103 | examples/fabric/reinforcement_learning/train_fabric_decoupled.py:65-77 \u2014 before extracting anything, compare \u0060examples/fabric/reinforcement_learning/train_fabric.py\u0060 and \u0060examples/fabric/reinforcement_learning/train_fabric_decoupled.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/fabric/reinforcement_learning/train_fabric.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the 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/fabric/reinforcement_learning/train_fabric.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e18eca0c283d2b7cacd80e0be4e37f85ce180510bfff9e3882e34f0fe21eb9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): examples/fabric/dcgan/train_fabric.py:71-84 | examples/fabric/dcgan/train_torch.py:78-88 \u2014 before extracting anything, compare \u0060examples/fabric/dcgan/train_fabric.py\u0060 and \u0060examples/fabric/dcgan/train_torch.py\u0060 as WHOLE FILES: this scan already matched 5 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the 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/fabric/dcgan/train_fabric.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc4c2a88f4b4833a826fbc5be83f8a2f367111e72715b9dff6f4ea431e93921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/fabric/reinforcement_learning/rl/agent.py:80-93 | examples/fabric/reinforcement_learning/rl/agent.py:180-193 \u2014 both copies are in the same file, so extract the block 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":"examples/fabric/reinforcement_learning/rl/agent.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e27a0440f5a4d82bfc262cf450ddbe0b6d49d5b9d637f33995c29eef24ab53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): examples/fabric/reinforcement_learning/train_fabric.py:90-102 | examples/fabric/reinforcement_learning/train_fabric_decoupled.py:65-77 | examples/fabric/reinforcement_learning/train_fabric_decoupled.py:232-243 \u2014 before extracting anything, compare \u0060examples/fabric/reinforcement_learning/train_fabric.py\u0060 and \u0060examples/fabric/reinforcement_learning/train_fabric_decoupled.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/fabric/reinforcement_learning/train_fabric.py:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/reinforcement_learning/train_fabric.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad87b74600eb02d829541de166d229d7adb52e3752174c04597b411407d12ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/fabric/dcgan/train_fabric.py:170-183 | examples/fabric/dcgan/train_torch.py:181-194 \u2014 before extracting anything, compare \u0060examples/fabric/dcgan/train_fabric.py\u0060 and \u0060examples/fabric/dcgan/train_torch.py\u0060 as WHOLE FILES: this scan already matched 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/fabric/dcgan/train_fabric.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":"examples/fabric/dcgan/train_fabric.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11be5aaa92a6fd70405ea42932e4a8ee030b36f984e682676e9eca0f5e24f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/fabric/dcgan/train_fabric.py:240-260 | examples/fabric/dcgan/train_torch.py:248-268 \u2014 before extracting anything, compare \u0060examples/fabric/dcgan/train_fabric.py\u0060 and \u0060examples/fabric/dcgan/train_torch.py\u0060 as WHOLE FILES: this scan already matched 5 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":"examples/fabric/dcgan/train_fabric.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"26147867f69304d2b3320fd0113d451551cb89b90f3d61dd36834a5c25dfe4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/fabric/image_classifier/train_fabric.py:59-70 | examples/fabric/kfold_cv/train_fabric.py:44-55 | src/lightning/pytorch/demos/boring_classes.py:328-339 \u2014 \u0060examples/fabric/image_classifier/train_fabric.py\u0060 and \u0060examples/fabric/kfold_cv/train_fabric.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 36 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/fabric/image_classifier/train_fabric.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c48528580d6c76911787181e295d4fc20d4735f67d6ca5d42ac43abde9a6bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/fabric/reinforcement_learning/train_fabric.py:120-131 | examples/fabric/reinforcement_learning/train_torch.py:178-189 \u2014 before extracting anything, compare \u0060examples/fabric/reinforcement_learning/train_fabric.py\u0060 and \u0060examples/fabric/reinforcement_learning/train_torch.py\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/reinforcement_learning/train_fabric.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"762694ae3602347101e9df9a78e75f3c48225d31c91fcef86952bbceb4131ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:116-124 | examples/pytorch/tensor_parallel/model.py:116-124 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/fabric/tensor_parallel/model.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef98bf9d442699c7f23890f542156706ffbbf0dea8654961d6764d0391f3b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:253-262 | examples/pytorch/tensor_parallel/model.py:253-262 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/fabric/tensor_parallel/model.py:253\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/tensor_parallel/model.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"77473da6dee3b7b651c27eb9e0aca186c5f92a18bd79a158d028827b07b3909f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/fabric/image_classifier/train_fabric.py:50-56 | examples/fabric/kfold_cv/train_fabric.py:35-41 | src/lightning/pytorch/demos/boring_classes.py:319-325 \u2014 \u0060examples/fabric/image_classifier/train_fabric.py\u0060 and \u0060examples/fabric/kfold_cv/train_fabric.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 36 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/fabric/image_classifier/train_fabric.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cebe7f1ee407512a2676c412d965203cc8515fdf55011c61dfd857ceb12def7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/fabric/reinforcement_learning/train_fabric.py:142-148 | examples/fabric/reinforcement_learning/train_fabric_decoupled.py:132-138 | examples/fabric/reinforcement_learning/train_torch.py:201-207 \u2014 before extracting anything, compare \u0060examples/fabric/reinforcement_learning/train_fabric.py\u0060 and \u0060examples/fabric/reinforcement_learning/train_fabric_decoupled.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 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/fabric/reinforcement_learning/train_fabric.py:140\u0060 calls \u0060no_grad\u0060 and \u0060examples/fabric/reinforcement_learning/train_fabric_decoupled.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":"examples/fabric/reinforcement_learning/train_fabric.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"327aba47a1a908f2f22e0aa684edaabe25df0885ebe7f4bed01285d79c2c5709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/fabric/reinforcement_learning/train_fabric.py:134-140 | examples/fabric/reinforcement_learning/train_torch.py:193-199 \u2014 before extracting anything, compare \u0060examples/fabric/reinforcement_learning/train_fabric.py\u0060 and \u0060examples/fabric/reinforcement_learning/train_torch.py\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/reinforcement_learning/train_fabric.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c3f0bcf3f079ea0a234f98dd1cdf3287cd56895dad85c4dcecf79789a72fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/fabric/reinforcement_learning/train_fabric.py:82-87 | examples/fabric/reinforcement_learning/train_fabric_decoupled.py:58-63 | examples/fabric/reinforcement_learning/train_torch.py:139-146 \u2014 before extracting anything, compare \u0060examples/fabric/reinforcement_learning/train_fabric.py\u0060 and \u0060examples/fabric/reinforcement_learning/train_fabric_decoupled.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/fabric/reinforcement_learning/train_fabric.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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the 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/fabric/reinforcement_learning/train_fabric.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b5be20ead0032864e9952e537ea7eeebc66334c3a55a4478802364ba5799a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:175-184 | examples/pytorch/tensor_parallel/model.py:175-184 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/tensor_parallel/model.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c541b257829ebc145483b0c6c38eca75e1c090ad232b0bd204a74aefc9bfba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/pytorch/basics/autoencoder.py:158-164 | examples/pytorch/basics/backbone_image_classifier.py:107-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/pytorch/basics/autoencoder.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea221a75bb3ff8941776ded921ee29e82edea1d25a61b85a09e4719ddeab907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/fabric/tensor_parallel/data.py:7-21 | examples/pytorch/tensor_parallel/data.py:7-21 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/data.py\u0060 and \u0060examples/pytorch/tensor_parallel/data.py\u0060 as WHOLE FILES: 100% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/tensor_parallel/data.py"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"578117f932c6dd780bb7b11d3428faf771e86cc5c8adb460984ed91095646c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:319-330 | examples/pytorch/tensor_parallel/model.py:319-330 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/fabric/tensor_parallel/model.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab9cf94ee58c5e579014dca986ed15ea693754479496bc14a601d2161f464b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/fabric/tensor_parallel/model.py:418-424 | examples/pytorch/tensor_parallel/model.py:418-424 \u2014 before extracting anything, compare \u0060examples/fabric/tensor_parallel/model.py\u0060 and \u0060examples/pytorch/tensor_parallel/model.py\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/fabric/tensor_parallel/model.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7b1e18d6336f44c3376645816a9bf34159971f814884b2eac819053059f1ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/pytorch/basics/profiler_example.py:53-57 | examples/pytorch/servable_module/production.py:29-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/pytorch/basics/profiler_example.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa3fdd823acbba2e6443e3846b91658f2054fe969d9b2756af75e45b09869b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/pytorch/basics/transformer.py:15-19 | examples/pytorch/basics/transformer.py:22-26 | examples/pytorch/basics/transformer.py:29-33 | examples/pytorch/fp8_distributed_transformer/train.py:53-57 \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":"examples/pytorch/basics/transformer.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafb4a756914a6f01a4de44aa781e2e8de2af42a6e3d954726a44ccc20f7b1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/fabric/dcgan/train_fabric.py:200-205 | examples/fabric/dcgan/train_torch.py:208-213 \u2014 before extracting anything, compare \u0060examples/fabric/dcgan/train_fabric.py\u0060 and \u0060examples/fabric/dcgan/train_torch.py\u0060 as WHOLE FILES: this scan already matched 5 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/fabric/dcgan/train_fabric.py:193\u0060 calls \u0060barrier\u0060 and \u0060examples/fabric/dcgan/train_torch.py:201\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/fabric/dcgan/train_fabric.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0e473effdd57a9002f6e106023141ac24e6c8313e6c41830bf92f32f3d2e9a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LightningCLI (LCOM4 6): LightningCLI\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":"src/lightning/pytorch/cli.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a0376aa3629fa905fe0839dc39de438ea8a2c0d66c618ae7ccf574272ec920"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DeepSpeedStrategy (LCOM4 5): DeepSpeedStrategy\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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84f4a4a85657c7a5ead530c010dfe22f6ba046858ca69151ca679dbc75cf033"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ModelParallelStrategy (LCOM4 5): ModelParallelStrategy\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/lightning/pytorch/strategies/model_parallel.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b035b6cfeb3ed4e6a75884522cdf5af16bf0f6f9ccd4ec98258e24f6aa305bc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DeterministicModel (LCOM4 5): DeterministicModel\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/tests_pytorch/helpers/deterministic_model.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2feefb0b14b070965685bcb1b72f6429f769c8fd083f17a4ee3bc2fa0c2fc57a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ModelParallelStrategy (LCOM4 4): ModelParallelStrategy\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/lightning/fabric/strategies/model_parallel.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"848fa9b7763162a9cd20a5dced95921ea6701f9ee30250dd462e4c9b657096e3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DDPStrategy (LCOM4 4): DDPStrategy\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/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d26f11f9c6d3998f59ab07c4b7c7bd8b3280472f98feac5982121d8e62d894"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DeepSpeedStrategy (LCOM4 4): DeepSpeedStrategy\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/lightning/pytorch/strategies/deepspeed.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9682199ba004d1c1bb2a6b8d4e312b60ad009e112725503ae1b7f5adc26fb560"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: XLAStrategy (LCOM4 4): XLAStrategy\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/lightning/pytorch/strategies/xla.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd83e88ace31b797749c0aedd202a0cde617b27efdb39d22c01ed71611b69d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/lightning/pytorch/core/saving.py: src/lightning/pytorch/core/saving.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in saving._load_state at line 126. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 11:44:30 \u002B00:00\u0027 --until=\u00272026-09-21 11:44:30 \u002B00:00\u0027 --full-history --no-merges -- src/lightning/pytorch/core/saving.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/lightning/pytorch/core/saving.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d360bcdcabec83b8bf40b17451d83ea023715c50dea1fddb509d20601664b08e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/lightning/pytorch/loops/fit_loop.py: src/lightning/pytorch/loops/fit_loop.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in _FitLoop.setup_data at line 225. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 11:44:30 \u002B00:00\u0027 --until=\u00272026-09-21 11:44:30 \u002B00:00\u0027 --full-history --no-merges -- src/lightning/pytorch/loops/fit_loop.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/lightning/pytorch/loops/fit_loop.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46ef81841dd20888b445cbcc182a28532611c2c42381b58b7b82b4092578f22"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: src/lightning/pytorch/loggers/litlogger.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7639e1534cd78a79164f6324e6e414ae7205606ed37ebc8341c066695898f767"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: this setting \u0060PYTHONPATH\u0060 may not be used by other evns like Conda for import packages \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/__init__.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ac427ef60d92af68bae7fe55cece6e3c4c94df6ee6ada74027b420b67c4fe4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: specify the possible exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/trainer/test_trainer.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f09487052cf5c6144b8eeea35d4ed933f4db3d0bd2f0b01fc83f0c1b874be23"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: specify the possible exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/trainer/test_trainer.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea6d539ee239ef66fa5435c728aefee401acb7f4522358e0d89dcdc1dce5d6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: specify the possible exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/trainer/optimization/test_manual_optimization.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2ad63646983d2c4dcfc8f7d6d1b478bf5c9de738ca9910357cdeb216624cc4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: specify the possible exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/trainer/optimization/test_manual_optimization.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"425122619a0020b1d864a11355309ca1313d5f5db50483959d62df57d93a5cbd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: specify the possible exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/helpers/datasets.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd996b58b692727bc681eaf95ff8aad525096fd89e3c997b1ebacf258dff9712"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: specify the possible exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/utilities/argparse.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a787b1372bf8c6f1acb42592d2985253c7f951256e5ffeb63aec8141202a9684"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: specify the possible exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/demos/mnist_datamodule.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0676bf9e935a32f5b10e9dff1530c4392be6127bf621761fa2ec31b47b9af65b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: specify the possible exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/utilities/logger.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e49f9f7e819aaed7798c748a9beb03616009098f39b7ae44d1fdaa70d6a684"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: move to \u0060tests/tests_pytorch/models/test_restore.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":"tests/tests_pytorch/trainer/test_trainer.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad5dd0e58a464044585e130fb9284bdac7e83a8887957c5d603cfdea589e778"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FixMe: the memory raises to 1024 from expected 512 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/trainer/test_trainer.py"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"847de4375afdcb50de3e216704036015ea15b695bc16047222a30aadd7951474"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Figure out why 1 every 3 runs, weights don\u0027t get updated on count = 4\u0022 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/trainer/optimization/test_manual_optimization.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e269b2cbc8e04005b40b6aade71715e5fae92d58633d83caddb7124399f162"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this test fails with max_epochs \u003E1 as there are leftover batches per epoch. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/strategies/test_deepspeed.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e171c46ec42caedaaa3879fc8bc2d935d74057663ce2f3ce24aebd208356e3e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Sean): Once partial parameter partitioning is supported this test should be re-enabled \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/strategies/test_deepspeed.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de40f19ca51804961b3ee6fe967284bfa38da982bd41e9c81d1f08ea91a0bc9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (@awaelchli): Add support for asserting equality of sharded 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":"tests/tests_pytorch/strategies/test_fsdp.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d5dc211fa7c8fadeef467235eecd712e29cf2823f4ceff2a53b680ff71d13c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Support initialization on meta 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":"tests/tests_pytorch/strategies/test_fsdp.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b06b7e87253ee96835856c55229b41e4084d185f5f3aa8d5d8563dd6939ea5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: To resolve this, switch to the new \u0060torch.distributed.checkpoint\u0060 APIs in FSDPStrategy \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/strategies/test_fsdp.py"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"5017de03029b4c005588ed60dfdb398551ec1be631dd1a6b90b327e35a0e992b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Re-enable activation 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":"tests/tests_pytorch/strategies/test_model_parallel_integration.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6496b2dbbdadb6a083d3c8b9f810a571baa7b1975d940c9b54f5a7fdb9d819ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Re-enable activation 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":"tests/tests_fabric/strategies/test_model_parallel_integration.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"537197ec12d0583136f9e478c290dee96ab3e43de32eed512d7897a60f7c19dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Nested profile calls are not supported and raise an error in Python 3.12\u002B \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/profilers/test_profiler.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aeed374e4643a05f9c12cb80cec19fcc040d1e68817c56b5eb5076de817a4f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: \u0060on_predict_model_train\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":"tests/tests_pytorch/models/test_hooks.py"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"3075e734888781a585558b04fef8c099aee61c0c05e76283e9de0a96c3b3f7bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: investigate where the logging happening in torch.onnx for PT 2.6\u002B \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/models/test_onnx.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"974236711f8c09e65207803d1b9646b952f0cdd956d14364ea49676f4ab252de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: the accelerator should be optional to just launch processes, but this requires lazy initialization \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/models/test_tpu.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7eec8923702b225bcb864e3525c85cad69d62619aecca14ed0214cc5996fff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: the accelerator should be optional to just launch processes, but this requires lazy initialization \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/strategies/test_xla.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf417adf6d872f770067bf91d9191ea407d6067aa52cccd2b856896a95388b4b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: incompatible numpy/pandas versions in test env \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/loggers/test_wandb.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc3b3c9ea714bfb2a492bc3ea82d4735e2e3320b14f5fae5e1d3cb3240abbef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: all durations are 0 on Windows \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/core/test_datamodules.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58395ede986ca1cf6cc9385bcb2359808f8b21142e2a4da68171aaf450e5ede"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: the accelerator and cluster_environment should be optional to just launch processes, but this requires lazy \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_pytorch/core/test_results.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e78d127456701fc971ca90ee623bdfc1f9761b0e893dec4c200d07c1ee1ea32"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: the accelerator and cluster_environment should be optional to just launch processes, but this requires lazy \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/utilities/test_distributed.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"75970ec1fe2769703eb8fa96cdeb4921f979fd2254a7667d5b8d54f7e3794f1e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(fabric): this list can be trimmed, maybe PL\u0027s too after moving 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/tests_fabric/conftest.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed87f58bf66df38873dc5fe4e326afaae6cfe9accc57b642468fa99ca5a3b7d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: switch with \u0060torch.cuda.get_device_name()\u0060 result \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/utilities/test_throughput.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a343a3ec4cfe8d9f0593a778947dc062060031980b1be9448b4bf9a7bb172bfd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: switch with \u0060torch.cuda.get_device_name()\u0060 result \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/utilities/test_throughput.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0023c688224d5730904de48c2371a976e2265229a6022e57ab5be5efa6efe1b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: switch with \u0060torch.cuda.get_device_name()\u0060 result \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/utilities/test_throughput.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa0a63a06da857e1d3aaf96c56e6bedbcd7ed878864a6e4ef067658875c2749"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(fabric): The dtype on the model is not correct, should be torch.bfloat16 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/strategies/test_deepspeed_integration.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"06723fc010342c646878f23c16d34b029b26a665361672cf71aa888c6c7d728d"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack: we already called launch() on another Fabric instance above \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/tests_fabric/strategies/test_fsdp_integration.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ebdf8dc3b1476f2469844ae0e855ef3a5bdd9e730e60ce3c4792d941bf5171"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(fabric): Registering classes that do not inherit from Strategy should not be allowed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/strategies/test_registry.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5b5f010fc0ff953a3a24a97ecbef21833ce03af23ba74bdea46a8a0b03472a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: replace with individual setup_module call \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/plugins/precision/test_amp_integration.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"790b89e4f3f05221ba219322ac792aa13e49fca49cb0f279a4d6ec01cd68421f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support unquantizing the state_dict so that it can be loaded into the original 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":"tests/tests_fabric/plugins/precision/test_bitsandbytes.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a84df0becddefa878a26709d83fb2cfb69b38ef6f3d188727a371324a85d252"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Replace \u0060_lazy_load\u0060 with \u0060torch.load(..., mmap=True)\u0060 in LitGPT \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/plugins/precision/test_bitsandbytes.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"227bf8007d2fb8301fc1719bea14f003c352499fbd1cd3d1064fb06e00b7fe3e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: These should be float16/bfloat16 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/plugins/precision/test_xla_integration.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a40498add3865f0af3073e5c54a476ac4a9d697ce9f04a2a0801d1f25e9e595"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This should be float16/bfloat16 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/tests_fabric/plugins/precision/test_xla_integration.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ce53022a864ad4ed69e9f91eede8d6259cbefafa90cbc486f1c0971c2342de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: kind=\u0022Vanilla PT\u0022 -\u003E use_lightning=False \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/parity_pytorch/generate_comparison.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c462178a97dcc8e6a1b7dfe4bfb0dc3cfd7b5dab2789dbdf659d6208de49bb54"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: add also relative X-axis ticks to see both: relative and absolute time differences \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/parity_pytorch/generate_comparison.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"91caba4e47f9f9fbf5e17af2b7c82d0728589a56cde7ae8a04cb522ac208849e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FixME: investigate! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/parity_pytorch/test_basic_parity.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef01e58514f8505fdf2e134b98c0a553e3dd59a37347fa45257c5105301a558"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FixME: investigate! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/parity_pytorch/test_basic_parity.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4d5e0a43c9de587fc8d0e8a43f20091a4dcf6226fb44e3f21e80495151bb75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # pytest.param(16, \u0022cuda\u0022, marks=RunIf(min_cuda_gpus=1)),  # TODO: requires GradScaler \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/parity_fabric/test_parity_simple.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd94ed7e5a6c00e5b7b207f7a6ebb06693c6f30dc8a0d851a58ef95a4fd2015"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: aggregate pytorch and lite requirements as we include its source code directly in this package. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/pytorch_lightning/__setup__.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c082a53168cab10cc2942ae237e87a481d4d98bdb963f178b313908f51d1bf3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: consider invaliding some additional arguments from packages, for example if include data or safe to zip \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/__setup__.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0aeb37812c9719762525b01fa8649639f9fa021a859fb3546adf26ca6eb6115"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: consider aggregation/union of tags from particular packages \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/__setup__.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8381b9fc39f5200c70a986e3c2acaf062317926a85898efa007f9170273513cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: revisit for jsonargparse v5.0, which removes the per-parser 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/lightning/pytorch/cli.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"0769037362b9ad714f8dd7d66877d0cb479b2ae5ae127dd722175993edea37aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: resolve if there are multiple 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/lightning/pytorch/utilities/model_registry.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d9ea1a608032a44230a7aec5f90534c505caa5ab90ee633f162cbea3ebb243"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: improve LRSchedulerType naming/typing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/utilities/types.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3333c5de1efee81be936530c3e38a02463d94dfae74520d388c54b845ce74ca1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: how do we compute precision_megabytes in case of mixed precision? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/utilities/model_summary/model_summary.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8b13171199e07d962a099931f152717bf27f22a3c32cefa9bea0d2b450b5f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: There are more states that needs to be reset (#4512 and #4870)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/tuner/batch_size_scaling.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4aa802af34870885cb570e7b0fc281d26164e24f74a76534576ac7f13b13995"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: update docs 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/lightning/pytorch/tuner/lr_finder.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17bdbaad0573f7974ea0186934e748e3301a638b7b698c3c62de7d6eb6ca1bd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: TPU 8 cores hangs in flush with TensorBoard. Might do for all loggers. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/trainer/call.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"603ba617015a89ae1a362ab83a2c67fe3c0ff87d288abb1188bde8a04af5f3b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this is actually an optional return \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c71fb5407f4f1d1b6ca542ae2e657a0887d46ecf891ed773caf8e345dcdd0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: improve the error messages below \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"76295242e41400807c5d695240e26fc3de0bd15b3e42bf4f2dc090867791a74c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: improve the error messages below \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/connector.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a822ee5478703927dc5fb6e2fbb526ec2b9cabc495717942c66dec6a6fd57c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: lazy initialized device, then here could be self._strategy_flag = \u0022single_xla\u0022 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"442ff0a2812d5d109f839961b6dfea7fde36b3ad847fa310aeaadeb569a9747f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: lazy initialized device, then here could be self._strategy_flag = \u0022single_xla\u0022 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/connector.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"912170077c0292bc510b8a35c061ca487af34168bc0ce7271566dd0f3b5de097"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: lazy initialized device, then here could be self._strategy_flag = \u0022single_device\u0022 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af90dccec3fae8d5728e1ebc2a41fdea18c87d810af45b94a9e5208d141acd4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: lazy initialized device, then here could be self._strategy_flag = \u0022single_device\u0022 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/connector.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"67df4795491690a8035af0efd490812e1ccd18eeaeb5d57423bdc2cf22eacb3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO this logic should apply to both str and object config \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"856300a8db45048131aed89b511580c44f6a4e64d1d9e8e6ee1a9fb4b06fe91d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO this logic should apply to both str and object config \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/connector.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe56d7ba08c944536380c5fc338610f272d31ce04fa5c1d20cf91721e341069"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should be moved to _check_strategy_and_fallback(). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4d9d4348256cfa94bef9e4fe286b7ba3fa8831e224bc99fa6e99ff6a893557"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should be moved to _check_strategy_and_fallback(). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/connector.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63eee7b640dd6a87469fba7b20279ff6ab0ef291b47aeb2c30907937a76c6c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: connectors refactor: move callbacks list to connector and do not write Trainer state \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/trainer/connectors/callback_connector.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"594191990431d31ffe6f738f1571b720c749c2a48f7fbb4a0b566e0a94978060"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo (tchaton) awaiting this feature to move upstream to DeepSpeed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/strategies/deepspeed.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df67a0d166af26a705422ec2303d588e4c714bb820c79c225c43c00f74bb0cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: this is required for DeepSpeed throughput timers \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/strategies/deepspeed.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c65b36ccd4a7f38283973000684cb5d83e04d9ac58953a94183eb3f248413f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Using Fabric, we do not support these variables within the config \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/strategies/deepspeed.py"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca965b0be5a6a8be843d07c13547db4cdf2504f3a0f363b8c22d50173a65e44"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: replace with newer APIs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/strategies/fsdp.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"096cd8a10477314798e1575bcf7a35e663029d81b0020a823daa5d9c9157ead0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: replace with newer APIs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7a9ce83159472d9d99cbd4861a52a7f41c1128559305de0f4770debca46f0e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(fabric): remove assertion once strategy\u0027s optimizer_step typing is fixed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/strategies/strategy.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f967673715576c6cf277da47378285a0cf0a512fbe610b809e3e1402ac6e8531"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: standardize this across all plugins in Lightning and Fabric. Related refactor: #7324"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/strategy.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf32296f43811e306716b6a886d704528c97bd406d19eaa72fd59eb99fe0ce35"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: standardize this across all plugins in Lightning and Fabric. Related refactor: #7324"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/strategy.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6afa3dc0ed6cf3e810660d36923c96a740a1b48f8daa1a43c7d8f9dda1ebe29"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: standardize this across all plugins in Lightning and Fabric. Related refactor: #7324"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/strategy.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70f0aae1825d07dd99470d106b3a95b9420b66cabf804c830500d19a09455fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: pass also best score \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/strategies/launchers/multiprocessing.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec924bb69bc9f77bc5ac991ccd13c4c33019e58f35788577f239c33b77143bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add support for the other options \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/serve/servable_module_validator.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6565b02343f72592e8136c4ae745e8948008f9c094d4a53fd06f0d81e3a87731"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add support for testing with those server services \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/serve/servable_module_validator.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34c8dcce7769ecc8e8f93426ba403c2729b67cc0f6adb1c52ffd2dcd146f8df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: we should instead use the batch_idx returned by the fetcher, however, that will require saving the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/loops/training_epoch_loop.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"03245b5e702bb606eeadb271ed0f465f88b00487685439e08d4bd52a54d6fe69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: let training/eval loop handle logic around limit_*_batches and val_check_batch \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/loops/training_epoch_loop.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e28bf9aca9e0e91a2665a9105ec025d0ddeffe735678bec25e1bd59a78ba7b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: explore why and possibly open an issue in PyTorch repository \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/loops/utilities.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ffc12aad092427bee7e37e1e025f65cb21d5260dda1fd448b3ef98398da1f0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this should have been 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/lightning/pytorch/loggers/logger.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e635012463a9cf79419ff043168ff0b2380ba3a08d931dcd109da6fc0d72b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: MLflow 1.28 allows up to 500 characters: https://github.com/mlflow/mlflow/releases/tag/v1.28.0"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/loggers/mlflow.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7c9537a23ecdda857b6eaa407e9888cdb713b8d1703d5cd7968403c6f7606e"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack: If the \u0027spawn\u0027 launch method is used, the logger will get pickled and this \u0060__getstate__\u0060 gets called. \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/lightning/pytorch/loggers/wandb.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefc3b6b04ec88d12574694c14d111d2c913e1e88ae8f4ed5fc1a7d2a396be77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Could make this a \u0060nn.Parameter\u0060 with \u0060requires_grad=False\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/lightning/pytorch/demos/transformer.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b2ebb43fec3b681186dbaf80111573fafa9d3b6cfeb4ea57aeeb00f5ee04e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make this a migration: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/core/saving.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e065a7fe349b1a31c0cf81d2e410eacba38ab8d0c3bac11a00cfbd38de2f055"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make this a migration: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/core/saving.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"346d025cd97c9a8791934ad8f99f85317396f2082f3cd15e17a60dc8969bcd56"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check if this can be enabled (#4040)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/callbacks/batch_size_finder.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"592a675390f3840aebb3a5af73074d9e9770d97abe19abaa372cd69f019638fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add support for multiple eval dataloader \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/callbacks/batch_size_finder.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffed5889ce8c0bd3dbfe0f918d58acec66804d6c25c03fa754cc408b4e94ea6a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo Add \u0060total_flops\u0060 in DeepSpeedSummary. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/callbacks/model_summary.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a193a2904656c26c0b388615cb3cf559f96cc116ce5f009faf565b9519912e67"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: integrate this into the precision plugins \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/callbacks/throughput_monitor.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90fd0b607cd8b113912acea446fb154198481ca7591db7d687877f6e29089c5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: integrate this into the precision plugins \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/utilities/throughput.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ddc1455fd451e5a7304acca9885df697593e01de24d28a6b9c87d7f7a5d252"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove old tasks when new once they are created \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/callbacks/progress/rich_progress.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"0155a894eee02e65a8f7f3e82f80056dcbf2e1da79845b45d66273732bb0c9e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO refactor input from trainer to local_rank @four4fish \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/pytorch/accelerators/cuda.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5134b1e0a9d14e37455bde0fb3afbda91247b67af3c3f8d70134cae0b1adbad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: replace \u0060torch.save\u0060 with \u0060_atomic_save\u0060 once #21799 lands."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/consolidate_checkpoint.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bcb626b0ad8a94d51fa8db75904ded0db6f885c74828c5048fac038d007bea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Introduce \u0060Fabric.materialize(module)\u0060 to give user control when materialization should happen \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/utilities/init.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66476acb493f0b5784d01647bb053eb2db4dc397e07bf71f6a64f18cd2fb987"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Make \u0060torchmetrics.Metric\u0060 compatible with the \u0060to_empty()\u0060 \u002B \u0060reset_parameters()\u0060 semantics \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/utilities/init.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0789a9d8539aa8ea5d21ec8961eb0f8d3585501bca02d80ea71e6af2610ebbc2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(fabric): Links in the docstrings to PL-specific deepspeed user docs need to be replaced. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"842a7910d748c4f421dfc9dfa695e06baaeb46f23e6caa0e81f0515c0ca8fe64"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Switch to new state-dict APIs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd536965ebdaf6af37ff00398aaa1bb1b6cbcb60119a2c0c72a04e563589bb49"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This can be cleaned up once PyTorch Lightning picks up the PyTorch version containing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"52536d779fa98b03b89ff3e7f5b38bd6157f9397c48c5f87eaa465385a941567"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Introduce \u0060Fabric.materialize(module)\u0060 to give user control over materialization \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/strategies/model_parallel.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3719244aff711328e9d36adcde44a20ef670bc69bdf65686ce8c8035ad6c685"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: we could implement optimizer replacement with \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/plugins/precision/bitsandbytes.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"198509a0058b518fb900ad81fe67d40ce2414345b90ec5b22d6a870bae964e12"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this could also support replacing \u0060Embedding\u0060 and \u0060Conv1D\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/lightning/fabric/plugins/precision/bitsandbytes.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"603913548c3b9b2a08210e96e33510e19cf3f66d1caa47cf4b88e21a63642c44"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(fabric): specify the possible exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/fabric/loggers/tensorboard.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"38967b2264d062ce1d5ed28566a77eb1b8ef603a64c22e5ef5e77776cbb85528"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Move this to litdata \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/lightning/data/__init__.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f0eeaa0d973b831d66327291b7a0df4d6f87c6d17194b3bc6336172d170f8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO persistent should be set to false, since this buffer can be recomputed. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/pytorch/tensor_parallel/model.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5be6bf642f53fb44f09b4f19b3b1216e11302c3a6d10301bfe06b1c4740367"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO persistent should be set to false, since this buffer can be recomputed. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/fabric/tensor_parallel/model.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"8167d17dbdbd645a2292b8b27bd53b4b0d636d22abebfa528a302830705e7602"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # ToDo: this number of classes hall be parsed when the dataset is loaded from 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":"examples/pytorch/domain_templates/imagenet.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7fa8c65aecd90ff8ae34189416caee6ab67c5ffdc6500c899383d485c2d74a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: these are missing objects.inv \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/source-pytorch/conf.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76ee3dade33163a734c4ab6bd6d6972daf5ccd555ba7b36fee067cb52a868e1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: generated list of all existing ATM, need to be fixed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/source-pytorch/conf.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fe442755b7a843a82292171814bea324a060f92416c53c492af2aee37296a3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: this is unexpected as the imports locally works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/source-fabric/conf.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2283fd673419fb58e35fd89941cf291d5cc9f50b123c5f2ab5b492428b5581"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (47594 LoC, 488 module-visible types across 56 directories) overshoots its size bounds. 1 of 2 build unit(s) (Python) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4842ad367a78941ccec73d857627e21e838b932492f4ae73cdd87ada79a9f00"}},{"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":"e9982e8fa2f7cf8bcaf7d1f080d395127dbd5e697fdfb06997fbab8ab850d2a8"},"properties":{"commitSha":"6685b49db35350c6ea2735b30dd791af6af609ec"}},{"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":"02caf815f841109822b0d2768a51f949b242b3b2c41a5f8a0791fea324a61ec3"},"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":"2675597a3e254ff162516fcd53b0d08f5f082ddda526e55892d3775d1d22b1c4"},"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":"07ae3b03842ad93cdf9358bff43ea277c74b6665448b42d9893dfda8603308cd"},"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":"4bb80a3a400d169d7c92ede33271229bbd187eac69331e67239e6c8d73d8d05e"},"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":"b6024d66996dd8efbdb94bdd5fd447e3d9481676cecc98bd35926945ac698ebb"},"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"743cbec0edc49afeabab8079a9844ad9bf2acd7b40379b5759ce4bbbc1a25e55"},"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":"c0dafc62d05bf382f28d81d39b26961d2389ff54e347e09e0d7284ffd6cede31"},"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":"1b4fb6cdab52992b8be65861603f5a98793c0c5b8693f39c3ce3dbe3ecfc7e01"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-668","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"28aef8d09baa6927b6f6ca6b91a2adc187a341792dc074f5c267611fc901e48f"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db3991e6220f2aa407b7ac6e09219ac350dcce030ded1f71c2c471cb6898c5fb"},"taxa":[{"id":"CWE-250","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":"0a1e059de55b53e58ecbfb6fb7fcdfcf80b758d0eaf2ad74e091d576613001f2"},"taxa":[{"id":"CWE-250","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":"8ca88ed20bbe21b085ab0adc08dafaef98d6d975526fab896c2124615c2c039d"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"00f6bb107db3de171929aec6a0aeefbe567c81b8bda9515f9bbc376ce9148642"},"taxa":[{"id":"CWE-200","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":"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":"f6b35b54c002e27970eb6a1696d55e46d2b853b323f7b68ff9c4a3a5b2ae6f8a"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"70ce323f68e2030b67b4c47f20567f9eeb2a0befa8f22cb1dfa9eebc696d6d01"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"9b4b3f87c0b9531d78348dd0eedff20f49328af4c1061b7b8aa950d9c90b9901"},"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":"02233552fd562e4ce79496d5769291f4db3d39ec1ce4681d6dd2689851c9b8fc"},"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":"218574ca84510323ae68f396c919d577ee8b8838900bbbe07822815622f72989"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"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":"d5490dec15918a591bbf5e33b571c08cdc75445d2d40cf06ca583b6bd033dc62"},"properties":{"dependency":{"package":"lightning","version":"1.9.0","advisory":"PYSEC-2026-3971","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1857","PYSEC-2026-3043","PYSEC-2026-3972"],"reachability":{"kind":"production","file":"examples/fabric/reinforcement_learning/rl/agent.py","line":10}}}},{"ruleId":"D34","level":"note","message":{"text":"Concentrated knowledge decay: 163 of 190 significant files have no living knowledge, while the repository is still being changed at a low rate (14 commit(s) in the last 90 days) \u2014 so this is one repo-wide knowledge-decay state, not 163 separate risks. Counted over 190 of the 275 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"008bd8d3156a7f5206da709f59f1f87af76671c6b9becea72c8c9cffbcbd4f8e"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/deepspeed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f21ad13d5c217ed3e0e5408e6753496dbeb9a42a5e03897fcec5041bfd3bccf"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/xla_fsdp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b534d6a61bd3123ac1edaf728fee224565c51468e5049f35d33884d4987e0c06"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/connectors/accelerator_connector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f46bd6ff656042c77e3bd31fbceaa2ed80dc9ae2cd755827dece465a40281ae"}},{"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/lightning/fabric/connector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f107f24403b487fa12c4d7d4b6a9587a47471be73d1bffeb2967e396977c621"}},{"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/lightning/pytorch/loops/training_epoch_loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9352c580ff788923e6595d047949ad5e135314a85ee0b7d4a1c65f6c269457df"}},{"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/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9d042454248a6ab33bad99b8970ce83678799fc888f688588026ceeb68c58e"}},{"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/lightning/pytorch/core/hooks.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd56d183ceb3cc40dc0c80ec0e09d84fd06d011b239afaf1de4065f2e05f59d8"}},{"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/lightning/pytorch/strategies/strategy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28235e192a0124200050f052815aa801934085bb166981e0c8a88b4297579a4b"}},{"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/lightning/pytorch/loggers/wandb.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae494031f774652125a0c6b1739d9296c7d677db7e54e5c80e1ae2b48ec8d6a4"}},{"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/lightning/pytorch/trainer/connectors/checkpoint_connector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d70057799cce50a52b13d4bda245f488f38ac3931db264c325da68b2233d3a"}},{"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/lightning/pytorch/profilers/pytorch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9355bf14ddccd820cb12b158caeb127bfc799df0d0d44b02f565bb107922aa4d"}},{"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/lightning/fabric/utilities/data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf5b8d3d894fe25d9c74775e6020c1a25daf0934cee860023b7593fe77e6e58"}},{"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/lightning/pytorch/callbacks/pruning.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe11ccb0502cdfc357cbaf46c8336c1a77ae5c96f207879cf447088793a29e80"}},{"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/lightning/pytorch/trainer/connectors/data_connector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"315dc4a97f1580e7da42aa8b532126566ffb618db9c18f040d9ff3d69db3181b"}},{"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/lightning/pytorch/callbacks/finetuning.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cedd0ca75e5c714c118db46e347532ed66a60974848605bcdc3ec4d8895e9fd"}},{"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/lightning/pytorch/utilities/model_summary/model_summary.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"282efb536b6a531dba1031481fbbe0eec5d23452a9f6865599c7430c9caf68fe"}},{"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/lightning/pytorch/trainer/connectors/logger_connector/result.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0622da51e607e02ba14bb74e3fb1c92762a26167768d33094a2d271a7c316b"}},{"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/lightning/pytorch/callbacks/weight_averaging.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b4cd7eca4f2da9d535ae5c729d1629fe2c13d58bce3f80b864ac8fcdfbf9cf"}},{"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/lightning/fabric/strategies/strategy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eae4d4fe917d135401a6db20a2d403c328765cc4f2c2b81d5f765e92389cf0a"}},{"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/lightning/pytorch/loops/prediction_loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf1ec7fd3ca4237cb513430b0b7054313f151a453c040c4994789efe5e2ca7b"}},{"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/lightning/pytorch/core/optimizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ed3d4c439473fc8fa130ee85261920788b872bfee93531b1b00cd82f486f92"}},{"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/lightning/pytorch/callbacks/stochastic_weight_avg.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5430a5a0609de8a8b49ee56ce6edca97ee2c14a0d7b7d83351fb27df213e8e"}},{"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/lightning/fabric/wrappers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caf9866d2feac9f3f7db3029d72d1f2b9ba99e315feeb913c6c9a1520f3b183"}},{"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/lightning/pytorch/callbacks/progress/tqdm_progress.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1df19a1f8e425b5fcbff0f076acd939210312daf54b9ec373bb4b559385a8b4"}},{"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/lightning/pytorch/utilities/data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05062fb72c03ed8d6461263accd0bf0b8590c2e33cce1a4205c6245afd4d7564"}},{"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/lightning/pytorch/utilities/combined_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff90f402e8b3d19557f10e474be7592b38908bd3ea0c8e11ab85b7a234eb8bf4"}},{"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/lightning/pytorch/tuner/batch_size_scaling.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad4f06e9d0e9be08b11104591bcb165d99b96d00f7b380bc55e6d70e2ca062a"}},{"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/lightning/pytorch/callbacks/lr_monitor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5307814f0021bc4508986f750ee9a98926964280a438b9dba3823512f4f52e58"}},{"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/lightning/pytorch/loggers/comet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75b5d0916acc866679e8f9b2336065703debaa3ee118a13e53b61ff81c3d23b"}},{"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/lightning/pytorch/loggers/mlflow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e99572920e3d8ee39164085d6c73918facaa9ef6888b692ca640cfe505e5927"}},{"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/lightning/pytorch/core/datamodule.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a44dd34bca4d5a63a8a10a85d1cd78da81f19d7dc23d8a818a304f321ba7d1"}},{"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/lightning/pytorch/utilities/migration/migration.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bca50998a5be52b4b94de1029cfa20ee1e1d9af68d070ae9f2d06731709c9ae"}},{"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/lightning/pytorch/strategies/launchers/multiprocessing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2700238469dd8a9ac5db23bf11e72d70fb4246c96a38da775e0c77239d9e7df7"}},{"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/lightning/pytorch/callbacks/early_stopping.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c336d46a96dc7f6b15469f29073960aac18a6367ae66bff156acecff0e0551b"}},{"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/lightning/pytorch/strategies/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"361922f330d197706178e72666b57ca163ea2c84465f4ea2ff75043b00062129"}},{"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/lightning/pytorch/loops/optimization/automatic.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a467e2ba655dcb911ae50ebc28d03c50a36252475c7f5a93ad44f0dbdd59a078"}},{"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/lightning/fabric/loggers/tensorboard.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7852138ead9668fe559462e776526662d56574a12635fe74877fbb3bf2f500b2"}},{"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/lightning/pytorch/trainer/call.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01cfcab264fe16f70f5259e42addf7b94417591a706145c256c11101196239e"}},{"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/lightning/pytorch/tuner/tuning.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"429930c6ad1291df78ea4b6591ae0296385531cbda54c82fc326c9bc7943a4ea"}},{"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/lightning/pytorch/utilities/parsing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f62e4de5b83f7543c193c92bd03599ba7674149a0e824ccb7ab9f8c2e0d99a0"}},{"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/lightning/fabric/strategies/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e21441c5ef0e829cdf91e50f74681002bb4eaf1c6ab57a03cb4bb908969efb"}},{"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/lightning/fabric/strategies/launchers/multiprocessing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2a8406c2020e053af799df7240a76daa619ff03de28f9a831e7478545bd0fb"}},{"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/lightning/pytorch/overrides/distributed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f2d80f5f5114692e81ff2b938f158eb23690b8524b071b070d761502cfd60f"}},{"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/lightning/pytorch/callbacks/throughput_monitor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc978b163f97308c5a8819a0512d7843d37fd068296ca94c491c812d88190ad8"}},{"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/lightning/pytorch/trainer/connectors/logger_connector/logger_connector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff959df695e5ba8092e4ace7c25bebe70117f08d65083c58f0f100d63cf32c4"}},{"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/lightning/pytorch/callbacks/callback.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e01dc4b5a0dd98ff2e101f018a1377b9fd20cf80669444cf48c77e96f8e050"}},{"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/lightning/pytorch/loggers/tensorboard.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e702430ce9a9e5c588aa333a74db5d936d9f9afdd7ff9e823ff75d9d855e383"}},{"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/lightning/pytorch/demos/boring_classes.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"707d785973445c8f51a4e75e9a2fbb94eaf3954bfe8bd2533029e9b53f437dc9"}},{"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/lightning/pytorch/trainer/setup.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"034154606f15268a7441901697dc06806b0d6e75e24ac2638a93f2ef97ecc6aa"}},{"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/lightning/fabric/strategies/launchers/subprocess_script.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34da4ae685b3f71d50fed9c74f1841cfd075e96ada877a02556f38163b8e4e7b"}},{"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/lightning/fabric/loggers/csv_logs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb5d6f2005262cebfc86a0eaa6cfa00de698a82de561ef0a2925095b094b237"}},{"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/lightning/pytorch/trainer/connectors/logger_connector/fx_validator.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a580a43cd35f5634114874eed71b40e7e1421152193d07132018400ae49b0292"}},{"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/lightning/pytorch/demos/mnist_datamodule.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5905920bcc1816814448144edb010a482fc8035805c5ed82bb705bcd36183c21"}},{"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/lightning/pytorch/loops/progress.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6d4eb831920acf97e47e06df640d8348a02168dec07613d9c0ddecece88806"}},{"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/lightning/pytorch/callbacks/progress/progress_bar.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b70c3eece2524274d8e99ada95361e5bb2d683c2e29a5f8ffdc199fef56ac88"}},{"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/lightning/pytorch/utilities/migration/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de762a3b5d308c77f42633c1bc0691b7a4c42806afd943c21d34fcafa8f965a4"}},{"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/lightning/fabric/cli.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8460e445f827df0b1f9d9d84793ca88a8134049bd0dbf2059405c29963fbce59"}},{"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/lightning/fabric/plugins/environments/slurm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1fcf5fe42429fcb5147b4f0c815c96da7e9511f9cd1b1cfa11b1842556a44e"}},{"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/lightning/pytorch/callbacks/batch_size_finder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8eb3495d5ece104f592798563b2853e8b752fbf6be15e88fdca7be9f0d6afc"}},{"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/lightning/fabric/plugins/collectives/torch_collective.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aecef6cc30ad0a1b46d9ac75009c602f842e0517fba4bcac1f089ad133a6c3e"}},{"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/lightning/pytorch/trainer/configuration_validator.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c9a98772eb84b8ea45e5c5493b5b10bf981d7e269c78d14d07a07b0669a216"}},{"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/lightning/pytorch/loops/utilities.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bded392a21db6eca40dafddeeb6bf1cdcfca76097bfe99b9d37ce48e99af9641"}},{"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/lightning/fabric/plugins/precision/transformer_engine.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9930ec63e96aa9a7db8aa68b4038c11652142c8b0955223f6434a9e9204d064"}},{"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/lightning/pytorch/callbacks/timer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2f4d531b5edd1e49ecb9176da8cc4f3a80ff926ee023e78e64b8406be59d17"}},{"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/lightning/pytorch/plugins/precision/fsdp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e1d9cf7d24faf6b2e48462d762c4251b8132624578a10605d22c15c9354d9e"}},{"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":"setup.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7350905534832be734b65ede2f1f6e4eed767a85bcf7759ec3c0518b0ce72a"}},{"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/lightning/fabric/utilities/device_parser.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0884e96c82a0b0646be2b3d6412505c673662ee68170b7aa9473e1fa817a3da"}},{"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/lightning/fabric/plugins/environments/lsf.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a804b49f4ec05059c00422cba97ac37f486af0558dd6732ef8fb244b910c2f94"}},{"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/lightning/fabric/utilities/spike.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91df87888c6dc3bcaade96bb2417b73ef64b9554f614c43dd1313c019569afa7"}},{"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/lightning/pytorch/strategies/launchers/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"670a0077de69e302083112a31d6e6f742120a75799180e9c3cceda131bd44ebc"}},{"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/lightning/pytorch/demos/transformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b4141453f70c1f1fdc68a12aa94bbb9b9f3b8317cdb460353b00a1c07e6159"}},{"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/lightning/pytorch/plugins/precision/precision.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3400578f55cfbc81520ae0cedf0f125980f35a89751a0b6b9695bae5b181c2a6"}},{"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/lightning/pytorch/core/mixins/hparams_mixin.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f08efe2adbb3badf8f4801f71915d8b9ca155e79a931185ae3932da0004ca49"}},{"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/lightning/pytorch/loops/fetchers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39a1be81bebc91807008431afc03f0863f018bd776c4381e28b135078bb996f"}},{"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/lightning/fabric/accelerators/cuda.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"122a2b301cbfd4149becb7dc61c0ae67c4ddbb4d80027bc4f6dc39def53b3f06"}},{"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/lightning/pytorch/serve/servable_module_validator.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f71490b0908b439d06470dec899c73183d0e8c8c18964a01650c1fb923913e"}},{"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/lightning/pytorch/strategies/launchers/subprocess_script.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e8f112c8079b854671ffc8f34bc681aa619b3d8061a2ddd84db58bef1e504c"}},{"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/lightning/fabric/plugins/precision/fsdp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7b71791d90623f0b8ffed2e636021cd2ae213cd0d92f6f267dc44a01b4dade"}},{"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/lightning/fabric/utilities/seed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71dc8fc3942bbb6cfe7cb3bb15679e7982632b8b0f228076c3ba0c74f9a8808"}},{"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/lightning/pytorch/trainer/connectors/signal_connector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c05b614db9c184f41c27b04f0921849093040636b536030b2f7e51b4a05c2c6"}},{"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/lightning/pytorch/profilers/simple.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c50af90abf04b0512212b34e58c2aef14891528874670e7abada4a8b2c624df"}},{"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/lightning/fabric/accelerators/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37266c15e7713cc0a0a1a18cb9e33967b9e27ba4f9f36036211928f470afe5ae"}},{"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/lightning/pytorch/utilities/model_registry.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acac3bfe7ecb736f9f6b782e7cde659efc642025cdf593ea4b121f2c99c7097d"}},{"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/lightning/fabric/utilities/logger.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5734570ce41aa57233af96d0e8cc1989b5d372d46261bf9fa332a7100a91040"}},{"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/lightning/pytorch/callbacks/gradient_accumulation_scheduler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cacc2bf30a7197a00f6b3530f46973175c42d50d7768014577815164f4574c"}},{"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/lightning/pytorch/callbacks/prediction_writer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12010583006bc09916689f5ce8fcc6651e20c6c91e66dd61e91e9370211b8a1e"}},{"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/lightning/pytorch/utilities/compile.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4d9db40b3c2b2aca7559f96bf074860761ae8c6293d7344fb6edcb698f0c82"}},{"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/lightning/__setup__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be934919b11d2c92eed15ced5cfaec7ead3d27faae57125fb057871360d458a8"}},{"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/lightning/pytorch/accelerators/cuda.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f025c5a1f3e2d1eb6e2b2e99eb9bcd722ce5aeb44f987f1b31ea468e7682f6f"}},{"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/lightning/pytorch/profilers/profiler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4854a55aa700289c3e38b40329714eb0a0d2500affb6ebb099576399fcf31ba9"}},{"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/lightning/pytorch/plugins/precision/deepspeed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57d99101bd4056eaf9a83adfad97264d59192d30641dbd527df8d3cf986ef72"}},{"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/lightning/fabric/plugins/precision/precision.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4c5b624769c50f69c80863b9c2f06c1cc738dea1dead55a18b69cce3f7ba50"}},{"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/lightning/pytorch/loggers/csv_logs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c8db99013a92220133c5a664d9ac98005fb8e4d067143c1f7d7548b0be7ed3"}},{"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/lightning/pytorch/callbacks/lr_finder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3ada1d855b9a83add49b41fcb0e8dddb8c7f5dfdd391d453abb4f9a7a89a17"}},{"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/lightning/pytorch/loops/optimization/manual.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e907bc29e0bbef079e98aac793fd80ddd8bc75d1ff8dbd4d9faceae4c54e932"}},{"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/pytorch_lightning/__setup__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7948082267e002a1d79fb04c7041989de1c23b6cdfff19e67f99c44e951e5fb5"}},{"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/lightning/pytorch/profilers/advanced.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bceca8e22f1ac1418423fb9e330d10d51d5776d5ffb308138f82e207fbbe3eb"}},{"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/lightning_fabric/__setup__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1254ade5890b5ce20e7b5288f5cf1d36ac75d765f6d0e9bc89255c1d08164df7"}},{"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/lightning/pytorch/loggers/logger.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d38e927b615c859e880d2e88439e6c375b2c1c85caeb2ac9218419c87d0f9d"}},{"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/lightning/pytorch/strategies/parallel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a9047f4b759038440992a126ca9f83e045b8ff193a151ae5e279c04308dcdd"}},{"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/lightning/fabric/strategies/launchers/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1cc387bad031f045aed0681f9e2597d95ff0f6394300d42e3a78bcc5db61bb"}},{"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/lightning/fabric/plugins/precision/amp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb17be21b7ec850cc34ba065d833fa493eb8cdfe6974cc62ecc86a390ac9310"}},{"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/lightning/fabric/utilities/testing/_runif.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5517b36351aa7ceb628f8bf925e01b9b1d3f5e7a681ec436c09cc520b404da1"}},{"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/lightning/pytorch/plugins/precision/double.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b992d8a4618d950bfc9c35539798981943d657b118b7e95659024e7b87ca4a30"}},{"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/lightning/pytorch/utilities/deepspeed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2a484927da10a3a2e5fb8e9e85c6c29c69cbdf0ef6ebde696b2cb31c395564"}},{"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/lightning/fabric/utilities/apply_func.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2b7b562c926fc1d48431c7bba4ab4494ddde212a331446bae84d9d79d88330"}},{"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/lightning/pytorch/utilities/model_summary/model_summary_deepspeed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1ebf935c66282140576cf5297869c5a0591160c4eca1e732a8927f73c74c94"}},{"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/lightning/pytorch/strategies/single_xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d0391657fa2b545710b6bf31c92d364c1abaaf8cc6ad267695e9a2ed78a08d"}},{"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/lightning/fabric/utilities/device_dtype_mixin.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ba74e500958aef8406f5b195d40a8ee83449bde8ebc5fc4eaecfa22ca492f4"}},{"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/lightning/pytorch/callbacks/rich_model_summary.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb1411becceb9beea75f3766207eca550cbf5847ae496af15142663aa4fcf52"}},{"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/lightning/fabric/utilities/init.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f3c4fd38f7e22dd2257db948fa1da89a8c49abb325ade6d6308d0827b5193d"}},{"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/lightning/pytorch/_graveyard/tpu.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4d88199f326857fa9378c1088830bf3361eef91573187a62e92cd6e1a8951f"}},{"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/lightning/fabric/strategies/parallel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84b69d16c29688a297d6314611b3a945e2b2eba2378fbaa82c5d0f009138b7f"}},{"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/lightning/fabric/loggers/logger.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3e5f622d18e7053f3f0ef61d199bef1ed6e6c62674aac18ae7224ee7a4929d"}},{"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/lightning/fabric/accelerators/registry.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec5233220b9de19a13ac14adb2ca0ed64ba53ce1860f1c6dc84aeaa261d6281"}},{"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/lightning/fabric/plugins/environments/mpi.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"274756a044dd1aba9de809b745fc385bd0c9fd39b2463674c2ac8c3b07dc54f4"}},{"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/lightning/fabric/_graveyard/tpu.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba940ce12a647d2e0816acddf6b86be44f6ec4052bdd82e2c695e0631d66c0c"}},{"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/lightning/pytorch/loggers/utilities.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45320b87d66eddf55fff175be0978b3995208c736a6af6ee12e73010c2756e64"}},{"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/lightning/fabric/plugins/io/torch_io.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b152fab9feee0979bf73fe99c97247550d8cec2058e55cef84d7bc91795bcd"}},{"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/lightning/fabric/strategies/dp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c839ea091c50a6d1c515483a67881c1630c8d5c3395747eca0096518f79f59"}},{"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/lightning/fabric/plugins/environments/lightning.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f290dab5b603c913c95a3c409c2294ee596a566d070b57032fe5df3fc0b2faa"}},{"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/lightning/pytorch/loops/loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8e7d32d8486f8907196639ffcfc40ee080d7e2ab678f94d265d9a4c2031f3b"}},{"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/lightning/pytorch/callbacks/model_summary.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"977f05eed4396e684beb559eb0662c74b5a2e449a6d6b4f29e9ba02e9fac4c9d"}},{"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/lightning/pytorch/utilities/testing/_runif.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b616aa2bd9b49f9d6b031f9f545b4bae6de518ad624be460df85ec4cf6ef853"}},{"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/lightning/fabric/plugins/environments/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be1bc0fa63a9270a267da2f77cfd823dc15bfcaa44b391d24dd443ec44910eb"}},{"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/lightning/pytorch/plugins/layer_sync.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef71004cc3d45d631a6ff9d29a9c90a726dd246a68802cc8b372260be5bfc5ea"}},{"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/lightning/fabric/strategies/registry.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a99a256daa4d6581516f63f26b6a7251edaa49da35859a27bdacbd7d595c9e"}},{"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/lightning/pytorch/plugins/io/async_plugin.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d29387305f169dd2e0d4c74c93630f60e3f986b39111aa51a29e2417d504457"}},{"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/lightning/pytorch/accelerators/mps.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"352caab1655de91ab8cc625841d6e42ce0ee6b4631832058fe8f4aea272406a8"}},{"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/lightning/pytorch/plugins/precision/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d35985246ea4201b41baf6ef58f513b9fbcded710dfb49711b7a5bcf9a64a48"}},{"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/lightning/fabric/plugins/precision/deepspeed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"937ddb96924acd0b2621faa95cb28f2fa4d10e8a0ff44df72d2da81eec6485f7"}},{"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/lightning/fabric/plugins/collectives/collective.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ee86c65d8a99a51f0af996e4472ea55bfe2e3bd128968bfb8e0263a13e44cd"}},{"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/lightning/pytorch/demos/lstm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef372740f01e556ef978962f3b5a75ac68c5c6342578baa806fea6adc617573a"}},{"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/lightning/pytorch/callbacks/lambda_function.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd982a5a7c52ade6c9f3a07a2783d7786f8e3bdf96924dd7ceb8866dd600e03e"}},{"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/lightning/pytorch/utilities/upgrade_checkpoint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f79c002b26abf3204848e2ea4dff40121ce7b300adfe560375001e643267345"}},{"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/lightning/fabric/plugins/environments/torchelastic.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f3a4b03f3e97e9dc927d9e60591536353325baf1798d45a99dac98417a2d48"}},{"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/lightning/pytorch/strategies/single_device.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08298f5e06979425e5601a31688fea17e70c2ac1a45ac156c763961a8490890d"}},{"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/lightning/pytorch/accelerators/cpu.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f815fae197a89e404fac12a41b1b61756e2540b3d364ec07bcb5a810a77a33"}},{"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/lightning/pytorch/_graveyard/precision.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa696e1f1cad432a3746dca5d0700822421764451966644fefa3db8e6438fc0"}},{"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/lightning/pytorch/serve/servable_module.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8328a97fb1e79f9b40e5bf8213eb47ec3f2773a6952819a2a10c9e6e65925fa3"}},{"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/lightning/fabric/strategies/single_xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b334d1ab973ee021cd80b2ad779654bb9538725905f80245f0ed0717a5ac399"}},{"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/lightning/fabric/plugins/io/checkpoint_io.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb51fd7766d8c3fb430efe8779f1182353cdd600ea79388c21fac2e8d56b167"}},{"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/lightning/pytorch/utilities/memory.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcaaefe0bf1b92309b4235841a9c609f1b02adb2284b00833bb17b02093606b"}},{"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/lightning/fabric/accelerators/mps.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d911e62098b5a9237adb94b04de159f7370d8d2ad18b4d376b2e926e21aa9cc"}},{"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/lightning/fabric/accelerators/cpu.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"817652a0596d7d6a581a049c191f10b96671898ff44b6825323513d0d7743acc"}},{"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/lightning/pytorch/profilers/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6fef8b2724db6c30f381ebaf7625d6a096f77754b1461f54a5b305e587bb91"}},{"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/lightning/fabric/plugins/io/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e4615cc07c567727812f776abb151551b2908b1eeb089c6a5afc8166e78890"}},{"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/lightning/fabric/strategies/single_device.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccaed10b100039db9c96c0bbd90ec86eb74e2158f97d86eab95793308b956e7"}},{"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/lightning/pytorch/trainer/states.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60259f3d7ebd3e88fad850dd005940cb4ebf5754e98527b55bde8a4c106332ff"}},{"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/lightning/pytorch/plugins/io/wrapper.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c98d808a5bbe081c50e5e8a0ed8186783d006f3d312c2eeed002c35356a82d0"}},{"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/lightning/pytorch/callbacks/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6565037f5044cb796f30c540c283f1353f476e896c8b6995e2c629ef16276e70"}},{"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":"requirements/collect_env_details.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0dced492c9e12a09e119f0061fe4333e2cf5b07d43a3dab0ac82399a92b5786"}},{"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/lightning/pytorch/utilities/argparse.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"925e7c77e0730cacc537bb7a2eb986aee117d00cdcd482dfc3a8d8182d7d4da7"}},{"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/lightning/fabric/utilities/types.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"720c552a32e3c4de665370444bb1fc67902bd5414ae0bef2836c0f1a4efe7e29"}},{"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/lightning/pytorch/loops/optimization/closure.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2c44e7cb82ed31951bdc0998c029d18e3155c7e635f4a10445e643a80a7ea4"}},{"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/lightning/fabric/plugins/collectives/single_device.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3603edc3e9c43d9cfe5dbdc87177873186b77bf9f6179dafcf335fc8f46864da"}},{"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/lightning/pytorch/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"348fa57058307217e2ffb77342180d0698c20e27974505f3df629c0e4b5af0a2"}},{"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/lightning/pytorch/plugins/precision/half.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d95675f399a5cb6e6372868e91512b81c3bcfa4ef6d2247ccee7978270bfc32"}},{"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/lightning/fabric/plugins/precision/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12788bd332e95bf960a377984319315bc5b259eb1116743eca472eb79c479ecc"}},{"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/lightning/fabric/plugins/precision/xla.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfbbab16384c57ca222b258c895995261b039284ded590d283bfc4711c5f782"}},{"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/lightning/pytorch/utilities/parameter_tying.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b21755c8ff936466b5c2afebf52ede374447c14523d976f6d233c6a4b64ad7d"}},{"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/lightning/fabric/plugins/environments/cluster_environment.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"903ccb281358ae3d6d1cbfe2e0eb4691cc3dbeb77b762220160070a7380b3293"}},{"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/lightning/pytorch/_graveyard/hpu.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b793f2e5fd0f677c3721a31ee7b8706c344778ceebe2148edebddfd3e9a5e1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: __setup__.py, __setup__.py, __setup__.py: 3 files \u2014 \u0060src/lightning/__setup__.py\u0060, \u0060src/lightning_fabric/__setup__.py\u0060, \u0060src/pytorch_lightning/__setup__.py\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 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/lightning/__setup__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3dff9b3ecb81b08da01228c920fc3af3ec2d170bdc8edfe66e183c2272ffb0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: __init__.py \u2194 accelerator_connector.py: \u0060src/lightning/pytorch/plugins/precision/__init__.py\u0060 and \u0060src/lightning/pytorch/trainer/connectors/accelerator_connector.py\u0060 change together 82% of the time (14 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 14 shared commits counted here, the most recent 3 are \u00605120ad20\u0060 Bitsandbytes precision plugin (#18655); \u0060756e4819\u0060 Support the TransformerEngine precision plugin with the Trainer (#18459); \u00607fe87569\u0060 [TPU] Proper half-precision implementation for XLA (#18213) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/plugins/precision/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f3d4b1aa439163cbda2783f680a2245605f816f55b5ba56064f4df2c981d93"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: evaluation_loop.py \u2194 prediction_loop.py: \u0060src/lightning/pytorch/loops/evaluation_loop.py\u0060 and \u0060src/lightning/pytorch/loops/prediction_loop.py\u0060 change together 78% of the time (14 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 \u00603d448ac4\u0060 Remember the eval mode of submodules when switching trainer stages (#\u2026; \u0060a26424e8\u0060 Fix zero-grad behavior when entering the validation loop (#18710); \u00601bee50b3\u0060 Refactor data fetcher selection in loops (#18494) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/loops/evaluation_loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"096aa7760a561fcb33fedf603576c619b3d32e9a365e739032c873f93b1fd8fb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: automatic.py \u2194 manual.py: \u0060src/lightning/pytorch/loops/optimization/automatic.py\u0060 and \u0060src/lightning/pytorch/loops/optimization/manual.py\u0060 change together 77% of the time (23 of the 30 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 23 shared commits counted here, the most recent 3 are \u00602334a8ac\u0060 Add \u0060@override\u0060 for files in \u0060src/lightning/pytorch/loops\u0060 (#18966); \u0060017262e5\u0060 Better type hints for \u0060LightningModule\u0060 steps (#17842); \u006052c98126\u0060 Make the trainer a required loop argument (#16771) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/loops/optimization/automatic.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01999619c2e1c5fdfd697a7328b2c1e3cfcc6258d5a620966bdb1f9a9cb53eec"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: conf.py \u2194 conf.py: \u0060docs/source-fabric/conf.py\u0060 and \u0060docs/source-pytorch/conf.py\u0060 change together 62% of the time (15 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 15 shared commits counted here, the most recent 3 are \u00602e25642a\u0060 Adds litlogger integration (#21430); \u0060851e66f4\u0060 fix:docs build errors (#21286); \u00606cf2581f\u0060 update model message (#20753) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/source-fabric/conf.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a68105266984747f2b32fe98bd1b812a6bd5083ac81f0a0f5c61a002fa3bd9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: fit_loop.py \u2194 prediction_loop.py: \u0060src/lightning/pytorch/loops/fit_loop.py\u0060 and \u0060src/lightning/pytorch/loops/prediction_loop.py\u0060 change together 61% of the time (11 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 11 shared commits counted here, the most recent 3 are \u00603d448ac4\u0060 Remember the eval mode of submodules when switching trainer stages (#\u2026; \u00601bee50b3\u0060 Refactor data fetcher selection in loops (#18494); \u0060cc18bd78\u0060 Refactor assertions that use walrus (#18496) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/loops/fit_loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f845f2156871cc488874c607d560029f68798deaa0233d8dc3ba1842744718b1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: batch_size_scaling.py \u2194 lr_finder.py: \u0060src/lightning/pytorch/tuner/batch_size_scaling.py\u0060 and \u0060src/lightning/pytorch/tuner/lr_finder.py\u0060 change together 53% of the time (31 of the 59 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 31 shared commits counted here, the most recent 3 are \u0060e1e2534d\u0060 Tuner cleanup on error (#21162); \u0060365bf109\u0060 Resolve FitLoop setter TODOs (#16803); \u0060b216a114\u0060 Decouple Tuner from Trainer (#16462) (at that commit the files were still \u0060src/pytorch_lightning/tuner/batch_size_scaling.py\u0060 and \u0060src/pytorch_lightning/tuner/lr_finder.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/tuner/batch_size_scaling.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6158deb7615014dd266d64887463d78f127ea33dd122583eab6f716a6669d9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: cpu.py \u2194 xla.py: \u0060src/lightning/pytorch/accelerators/cpu.py\u0060 and \u0060src/lightning/pytorch/accelerators/xla.py\u0060 change together 52% of the time (12 of the 23 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060ddc1ce1f\u0060 Add \u0060@override\u0060 for subclasses of \u0060Accelerator\u0060 (#18934); \u00602f21670f\u0060 Fix registry descriptions (#18766); \u0060dcc973e0\u0060 Add \u0060AcceleratorRegistry\u0060 (#12180) (at that commit the files were still \u0060pytorch_lightning/accelerators/cpu.py\u0060 and \u0060pytorch_lightning/accelerators/tpu.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/accelerators/cpu.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69237a76ec5aeb64ca1574680f9e7cc9febc5f17a5fefd5ab782aa61729e7fd5"}},{"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":"759dca709f1a032fb6f624ce672e6afb5558fce53ecf01fb73618c4d33923164"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f90d7de0ed3ec912fa50ce8ab6f635a8e32210958f2956584a0c7675665a805"},"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":"1d986338fc916ffbfd29ad28194ce849778fa5d91d42e4e67db939ece41f299b"},"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":"7394c3590134fe273b4165f8bd15a155e9cfb54e493405094d958060588f476a"},"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":"1c4fb4f84891a4b3b3a5bc287171b30a2b94916558f1666207111bc16cb6741d"},"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":"8ceed8c12e698c33ca39bd10e0adc4d3f6a9ad065adc567f0c0ca756d2ba5cdb"},"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":"2e655d2c882bee806f58173d823311d431f9cc133e83959fe0c0ea1619cab077"},"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":"fa1a2c839305693936fe4108162f24d571bc538622dcbff300c1076e61059f6e"},"taxa":[{"id":"CICD-SEC-4","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":"447d8c00ceccb07995de43efd9dcb1a608582535081b304f8d2a0c0a1973a186"},"taxa":[{"id":"CICD-SEC-4","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":"99e313694868783cdcf69e39bb7345a229f4b8aa029298db1f9ea652d56aa5e7"},"taxa":[{"id":"CICD-SEC-4","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":"68c3bda15779988e0f71336bf0864f18003400397285fd0e78ee57b4812365bf"},"taxa":[{"id":"CICD-SEC-4","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":"cbab10f89735d2e2e444158b8e1bf7b3f8bf19f3ebc3051ede1a651b8b3c1c19"},"taxa":[{"id":"CICD-SEC-4","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":"4bcfecf7a5b36b69269ae9cc459ae748eb1cf6aabe7f85c6346b8a46542bff5d"},"taxa":[{"id":"CICD-SEC-4","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":"9d46215218556b8edd5d91dacaa809800a63a613ac72b2e899996453aea8ba7a"},"taxa":[{"id":"CICD-SEC-4","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":"be47fc4c77188546c8068d56ea66382949a299c5415d9dfb59d7eac996564563"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Collective (18 abstract methods): \u0060Collective\u0060 declares 18 abstract methods: \u0060rank\u0060, \u0060world_size\u0060, \u0060broadcast\u0060, \u0060all_reduce\u0060, \u0060reduce\u0060, \u0060all_gather\u0060, \u0060gather\u0060, \u0060scatter\u0060, \u0060reduce_scatter\u0060, \u0060all_to_all\u0060, \u0060send\u0060, \u0060recv\u0060, \u0060barrier\u0060, \u0060is_available\u0060, \u0060is_initialized\u0060, \u0060init_group\u0060, \u0060new_group\u0060, \u0060destroy_group\u0060. Counted over its \u0060@abstractmethod\u0060s (and abstract properties), once per name; concrete methods are helpers an implementer inherits, not a burden, and \u0060_\u0060-prefixed members are not counted. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/collectives/collective.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f873129d8e38d1bf651e6419c7920668ddff63f7376b22ba34b7912c5b5c9158"}},{"ruleId":"C2","level":"warning","message":{"text":"No authorization: This repository serves requests \u2014 a request handler (@app.get() (src/lightning/pytorch/serve/servable_module_validator.py:155) \u2014 and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/serve/servable_module_validator.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a8605255e842d1f3409342f907e03ffeafead9aeef3af32d0f87fe327e98fb"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 17 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/call-clear-cache.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch gitsubmodule: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060gitsubmodule\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":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"189dbbebbc083d2f437329c82dc1cae8adbf1b7293a5bc9e2de708f747e84eda"}},{"ruleId":"P4","level":"note","message":{"text":"Irreversible deploy step: sync deletes the live copy: This step syncs the release over the live copy with delete (\u0060gsutil -m rsync -d -R docs/build/html/ ${GCP_TARGET}/stable\u0060): files the new build lacks are removed in place and the rest are overwritten, so the previous release is gone and a half-finished sync serves a mix of both. There is no staged copy to switch back to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/docs-build.yml"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae075f2983f38444df460b760e31bddc248dc8ef85b8c3e06c1ed1e64faff67f"}},{"ruleId":"P4","level":"note","message":{"text":"Irreversible deploy step: sync deletes the live copy: This step syncs the release over the live copy with delete (\u0060gsutil -m rsync -d -R docs/build/html/ ${GCP_TARGET}/latest\u0060): files the new build lacks are removed in place and the rest are overwritten, so the previous release is gone and a half-finished sync serves a mix of both. There is no staged copy to switch back to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/docs-build.yml"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6bff7c2c41c6f9145071d9be7f92e9e6d9cde0f5625eff2df9fa2fc9b37f4c"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/serve/servable_module_validator.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3013ac6f76a8a3182e6047b7ef178959c0cf61ab379e8d5a3155b09eb5537781"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/serve/servable_module_validator.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d663e2b4f4b7619960a3c75e816d867220b5f1c602e9f45e62d8d9760592da3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.nodeType == 3 \u0026\u0026 this.data.trim().length \u003E 0\u0060 appears character-identically in 2 files \u2014 docs/source-fabric/_static/copybutton.js, docs/source-pytorch/_static/copybutton.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/source-fabric/_static/copybutton.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3089347ecfae7755bf32a80025bd537d1edb38ed2ea995829d7bc545317c46b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_IS_INTERACTIVE and isinstance(self.accelerator, CUDAAccelerator) and self.accelerator.auto_device_count() \u003E 1\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5be692a818cfe4b3b443f9f3f3398905f241776a7e89a7f9a43f9158836314f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_IS_INTERACTIVE and self.strategy.launcher and not self.strategy.launcher.is_interactive_compatible\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"d111f9cdff9ca3d8b9c9aa3108b9b57b426305b19bf33b6cc6a2f9e4c39dd80f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_TORCH_GREATER_EQUAL_2_6 and not _DEEPSPEED_GREATER_EQUAL_0_16\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/strategies/deepspeed.py, src/lightning/pytorch/strategies/deepspeed.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dad02be4d499954eb41b69ffc3b16bfd9681189ee97fdfe339bfc7fd6d67f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_is_dir(self._fs, d) and bn.startswith(\u0022version_\u0022)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/loggers/tensorboard.py, src/lightning/pytorch/loggers/tensorboard.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/loggers/tensorboard.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"265b3eab9a6d77a891b8bb4be30f6added1e7d6f1be45b7eaa1d2279b06a4607"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_is_registry(ckpt_path) and module_available(\u0022litmodels\u0022)\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/trainer/connectors/checkpoint_connector.py, src/lightning/pytorch/trainer/trainer.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/connectors/checkpoint_connector.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ff6752bd89f26bc124a5f27bbe9ca8ad90037de1dfd4d0d9c6540b3bf2a2cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060accelerator in (\u0022mps\u0022, \u0022auto\u0022, \u0022gpu\u0022, None) or isinstance(accelerator, MPSAccelerator)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"74aa43fe6880e3e371466c0b8240999d86cfc6edb805ff3afdb61247b8457f14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060checkpoint_callback and hasattr(checkpoint_callback, \u0022best_model_path\u0022)\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/strategies/launchers/multiprocessing.py, src/lightning/pytorch/strategies/launchers/xla.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/launchers/multiprocessing.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3418b90d4dd266a57ff3a5ba019a9cee1a0f19bc613caf1aac059bc467d1907b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config is None and self.DEEPSPEED_ENV_VAR in os.environ\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/strategies/deepspeed.py, src/lightning/pytorch/strategies/deepspeed.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"134faa23dc0851b0cec67443393a8a1c808dcff92e3884ec11d0db60915acf2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(batch_sampler, \u0022batch_size\u0022) and hasattr(batch_sampler, \u0022drop_last\u0022)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/utilities/data.py, src/lightning/pytorch/utilities/data.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/data.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ae00e3beadd0d575977f57ae937e6587c1a0b487d065de122404fba402862f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(dataloader, \u0022dataset\u0022) and isinstance(dataloader.dataset, IterableDataset)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/utilities/data.py, src/lightning/pytorch/utilities/data.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/data.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d27b73ca791ddabdb9628d6f55eff9b6185e496b44de0dfc1aa4aaf62b9cba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self._strategy_flag, \u0022parallel_devices\u0022) and self._strategy_flag.parallel_devices\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"797b909b60c7deb30926c9cff38f3498021ea28fc9cf96c680f4bba3e9cdda8f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060invalid_reduce_op or invalid_reduce_op_str\u0060 appears character-identically in 3 files \u2014 src/lightning/fabric/strategies/xla.py, src/lightning/fabric/strategies/xla_fsdp.py, src/lightning/pytorch/strategies/xla.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/xla.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ad83a255d8b934e9e3457e48f3a96abdb80e68517e10f693567549e5175795"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060io is not None and not isinstance(io, (XLACheckpointIO, _WrappingCheckpointIO))\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/strategies/single_xla.py, src/lightning/pytorch/strategies/xla.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/single_xla.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddaea46f1fc0e4b54625e640f4c7e5b5e958feb1e5c2d643a24966ac2c394958"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060io is not None and not isinstance(io, XLACheckpointIO)\u0060 appears character-identically in 3 files \u2014 src/lightning/fabric/strategies/single_xla.py, src/lightning/fabric/strategies/xla.py, src/lightning/fabric/strategies/xla_fsdp.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/single_xla.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b70bf9451bb85d52b990fbbaa01a5d23e37a312f2a3d5bdaa4a5f7894bc02e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_mps_accelerator and is_parallel_strategy\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df7c94c9eb7bc794ae16e332aaaa035eafec55072d0cd54c56cf1380a2ee575"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(config, dict) or config is None\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/strategies/deepspeed.py, src/lightning/pytorch/strategies/deepspeed.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d8c39431da65a1c66c261cc660e2c12741541515ede6b0474ab31159877ab5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(reduce_op, ReduceOp) and reduce_op != ReduceOp.SUM\u0060 appears character-identically in 3 files \u2014 src/lightning/fabric/strategies/xla.py, src/lightning/fabric/strategies/xla_fsdp.py, src/lightning/pytorch/strategies/xla.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/xla.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b56bc7a31932f39f2d29fa7ee7a42ad2b78d88161253a24f3830f18901e8ccd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(reduce_op, str) and reduce_op.lower() in (\u0022avg\u0022, \u0022mean\u0022)\u0060 appears character-identically in 3 files \u2014 src/lightning/fabric/strategies/xla.py, src/lightning/fabric/strategies/xla_fsdp.py, src/lightning/pytorch/strategies/xla.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/xla.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a96644be437f3db0ada58551cd2c2f9a68c480cc173f74b97a31479ed6f469b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(reduce_op, str) and reduce_op.lower() not in (\u0022sum\u0022, \u0022mean\u0022, \u0022avg\u0022)\u0060 appears character-identically in 3 files \u2014 src/lightning/fabric/strategies/xla.py, src/lightning/fabric/strategies/xla_fsdp.py, src/lightning/pytorch/strategies/xla.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/xla.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ef02211f42eeb49ace1453683c75af3aaafff2d635f3314d0d577af44c169d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self._accelerator_flag, str) and self._accelerator_flag in (\u0022cuda\u0022, \u0022gpu\u0022, \u0022mps\u0022)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"0082e64e10d95ccbf1514978a7b60fc235e64f867fcd27e1292326d93ea8e6c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(strategy, str) and \u0022ddp\u0022 in strategy\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ac34ec7b295f6204f1c1a13a64111bfd5bf2ac361156bcba3c369794d12cbb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(strategy, str) and \u0022deepspeed\u0022 in strategy\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"174a39ddc1379298f834dbf601aefbaf18bef55509deee280c7a0baa01986966"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(optimizers) \u003E 1 or len(lr_schedulers) \u003E 1\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/cli.py, src/lightning/pytorch/strategies/deepspeed.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/cli.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece6a0429f6076030bd5cbcc0ef841799bf910cd82d93fae445b5fec3e6ba337"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(self._parallel_devices) \u003E 1 and _IS_INTERACTIVE\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"add3f1ad2909b6056665c547b0c63fcce6d85e4a58ce7df6921fef2199679433"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model.automatic_optimization and skipped_backward\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/plugins/precision/deepspeed.py, src/lightning/pytorch/plugins/precision/xla.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/plugins/precision/deepspeed.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1de7a91af65d00f4800a0b505fcc3d80bb8d38660211c7212e206a2cd50152"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name in attrs and p.default is not attrs[name]\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/utilities/data.py, src/lightning/pytorch/utilities/data.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/data.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c6e603d5036e0f358a69894c658b40604809880dd1be39d17143da2cf574b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(num_nodes, int) or num_nodes \u003C 1\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73c54711c06d61c7e39082efd5cf20494f2dd80317b7954cbbac1de59d4d81e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.environ.get(\u0022PL_GLOBAL_SEED\u0022) is None and \u0022PL_GLOBAL_SEED\u0022 in env_copy\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/strategies/launchers/subprocess_script.py, src/lightning/pytorch/strategies/launchers/subprocess_script.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/launchers/subprocess_script.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b83393ee70db83c0bcb0c0156141db1899130d677ea6208c50f5938875e57d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060p.kind in (p.POSITIONAL_ONLY, p.POSITIONAL_OR_KEYWORD) and p.default is p.empty and p.name not in dl_kwargs and p.name not in arg_names\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/utilities/data.py, src/lightning/pytorch/utilities/data.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/data.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"76921cce0eb7fc9ec6ccaee595742003fd419fcf58a4dccd936a30c20795b106"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pl_module is not None and pl_module._trainer is not None and pl_module._trainer.state.fn == TrainerFn.FITTING and self._layer_sync\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/strategies/ddp.py, src/lightning/pytorch/strategies/fsdp.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba70399c4c4a6820397d0080edc0b801cbe32144f526c1231dd8e7428475547"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060precision is not None and not isinstance(precision, XLAPrecision)\u0060 appears character-identically in 3 files \u2014 src/lightning/fabric/strategies/single_xla.py, src/lightning/fabric/strategies/xla.py, src/lightning/fabric/strategies/xla_fsdp.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/single_xla.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"caba59a94545bd16ae87cda890e68d32418ec44783b8a4bfc82d191758543546"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060precision_plugin is not None and not isinstance(precision_plugin, XLAPrecision)\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/strategies/single_xla.py, src/lightning/pytorch/strategies/xla.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/single_xla.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"32af2856bcf8dc892acfbab93ff9942f2f097afc25f55d61bc8786d788e45224"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scaler is None and precision == \u002216-mixed\u0022\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/plugins/precision/fsdp.py, src/lightning/pytorch/plugins/precision/fsdp.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/fsdp.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e23211c8ebc504249397849ee4821e8d5912edc1dcd835d8dfb8e0cebe6cf62"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scaler is None and self.precision == \u002216-mixed\u0022\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/plugins/precision/amp.py, src/lightning/pytorch/plugins/precision/amp.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/amp.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a857046980c61b7e410484c413fc9a72030f023507fca38a58ba13b80c34689"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scaler is not None and precision != \u002216-mixed\u0022\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/plugins/precision/fsdp.py, src/lightning/pytorch/plugins/precision/fsdp.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/fsdp.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ac45fe8564b85855df1b099740fc70e5cb0e725e8bab0eac393b8fdfa4d6d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scaler is not None and self.precision == \u0022bf16-mixed\u0022\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/plugins/precision/amp.py, src/lightning/pytorch/plugins/precision/amp.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/amp.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f80d2e13afda881ed9abdf9ff19fbf86491095ac58c0cee39464abd12ec1de0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._accelerator_flag == \u0022tpu\u0022 or isinstance(self._accelerator_flag, XLAAccelerator)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"606873b373a05b8132698bd072b3e67fbde659927a50b61fe8dd8b578cc0f666"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._accelerator_flag and self._accelerator_flag not in (\u0022auto\u0022, \u0022cpu\u0022)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab280b5094d6a79a439eb38c7acdae029ef40f4ceb2454f2f7f695bbc20f034"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._accelerator_flag and self._accelerator_flag not in (\u0022auto\u0022, \u0022cuda\u0022, \u0022gpu\u0022)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfb98d6436081bd69ee007a2f9377f7bb0ced6a848641fff0f7e57db85312a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._already_fit and trainer is not None and trainer.state.fn == TrainerFn.FITTING\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/strategies/launchers/multiprocessing.py, src/lightning/pytorch/strategies/launchers/xla.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/launchers/multiprocessing.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16b742c4c4cdc94936006b78647b1da3685b5bc9b1cdd660220bedbefb0294c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._log_model == \u0022all\u0022 or self._log_model is True and checkpoint_callback.save_top_k == -1\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/loggers/mlflow.py, src/lightning/pytorch/loggers/wandb.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/loggers/mlflow.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86e72147272179b0814b666cb41e17edc36ae444074b9ee2bfd5deda0da518d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._parallel_devices and len(self._parallel_devices) \u003E 1\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"205e7db7b4f88e83e8b7b0458ad1bff64110d01c7cd8bed8c20881d24978fd18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._process_group_backend or _get_default_process_group_backend_for_device(self.root_device)\u0060 appears character-identically in 6 files \u2014 src/lightning/fabric/strategies/ddp.py, src/lightning/fabric/strategies/fsdp.py, src/lightning/fabric/strategies/model_parallel.py, src/lightning/pytorch/strategies/ddp.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/ddp.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3342d6f743fec3f7e5a64c05b5758b0e2cfef57513a70766dc80932deec07255"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._start_method == \u0022spawn\u0022 and isinstance(self._strategy.accelerator, CPUAccelerator)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/strategies/launchers/multiprocessing.py, src/lightning/pytorch/strategies/launchers/multiprocessing.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/launchers/multiprocessing.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e568f85ab5dac40cf26c963d6365eb035aebbcab81e531478161579a531aa46"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._state_dict_type == \u0022full\u0022 and _is_checkpoint_dir(path) and not _is_sharded_checkpoint(path)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/strategies/fsdp.py, src/lightning/pytorch/strategies/fsdp.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/fsdp.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ab886453b3dc350a2c8263d53f966897d41d352e64d41088ca8d83038ac03b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strategy != \u0022auto\u0022 and strategy not in self._registered_strategies and not isinstance(strategy, Strategy)\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc421c98a09024be350bfdb32eb08f4e94aa0b01b080b9b38dd8fcbe583e5f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strategy_flag in _DDP_FORK_ALIASES and \u0022fork\u0022 not in torch.multiprocessing.get_all_start_methods()\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/connector.py, src/lightning/pytorch/trainer/connectors/accelerator_connector.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/connector.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b4e011d31c038e6b498fb4928e94c7263c411bf873c572b2825baefeaee353"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060torch.cuda.is_available() and torch.cuda.is_bf16_supported()\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/plugins/precision/bitsandbytes.py, src/lightning/fabric/utilities/testing/_runif.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/bitsandbytes.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"164e70cb03f08e1602a044feb145a59ab6b995f6d42c33c27a6cf40820828234"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060train_dataloaders is not None or val_dataloaders is not None\u0060 appears character-identically in 2 files \u2014 src/lightning/pytorch/trainer/trainer.py, src/lightning/pytorch/tuner/tuning.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"40de2fbe0d70d1e0fa628ecd71033a9ca7de7a93520901de79f687aa78256901"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060zero_optimization is not None and zero_optimization.get(\u0022stage\u0022) == 3\u0060 appears character-identically in 2 files \u2014 src/lightning/fabric/strategies/deepspeed.py, src/lightning/pytorch/strategies/deepspeed.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1c9ad7acae537bf57a3fba9410bcf25f8c135c3addfe2ec1c6f63377ccadfc"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060parse_batch_shape\u0060 is public and takes \u0060batch: Any\u0060 from its caller, and it calls itself at line 424 (\u0060parse_batch_shape\u0060) with a piece of \u0060batch\u0060 \u2014 and nowhere in \u0060parse_batch_shape\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060parse_batch_shape\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/utilities/model_summary/model_summary.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"53eb67d6263d2f408f8fb35071690cb5d9da96ff93bf713db5a4b4b80980ccdf"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060merge_dicts\u0060 is public and takes \u0060agg_key_funcs: Optional[Mapping]\u0060 from its caller, and it calls itself at line 147 (\u0060merge_dicts\u0060) with a piece of \u0060agg_key_funcs\u0060 \u2014 and nowhere in \u0060merge_dicts\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060merge_dicts\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/loggers/logger.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"855fab0f54839b1fc380c78b0fa84ebabc3dcd281bc2d16e2bb5d8f9738c103f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060update_hparams\u0060 is public and takes \u0060hparams: dict\u0060 from its caller, and it calls itself at line 274 (\u0060update_hparams\u0060) with a piece of \u0060hparams\u0060 \u2014 and nowhere in \u0060update_hparams\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060update_hparams\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/core/saving.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"228e4ec3365c9c7c4d42ef1ab4f46a50280d34b1adf7443d1ad8d358af82412d"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060_import_bitsandbytes\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the \u0060BITSANDBYTES_NOWELCOME\u0060 environment variable (set at line 210, cleared at line 218) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception raised in between: the process then keeps the overwritten value for the rest of its life, and every later relative path, \u0060subprocess\u0060 launch, \u0060os.environ\u0060 read or \u0060print\u0060 in ANY module sees it. That failure is silent and remote from its cause \u2014 the function that breaks is not the function that moved the value. The window is not private while it is open either: the working directory, the environment, the umask and \u0060sys.stdout\u0060 are per-process, not per-thread, so a concurrent thread sees the moved value too. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 the \u0060cwd=\u0060 and \u0060env=\u0060 arguments of \u0060subprocess.run\u0060/\u0060Popen\u0060 scope both to the CHILD, absolute paths built with \u0060os.path.join\u0060 or \u0060pathlib\u0060 need no working directory, and a stream handed to the code that writes needs no \u0060sys.stdout\u0060. Where the global genuinely must move, \u0060contextlib.chdir\u0060 (3.11\u002B), \u0060contextlib.redirect_stdout\u0060 or a \u0060try\u0060/\u0060finally\u0060 makes the restore run on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/bitsandbytes.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8b5ac5eb9e9d4283c33684b5125288cf23aff21d949450f6afacb70a7d9e33"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 105 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"setup.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a32d1c20a66fa95a22672284376ad7ad968bb74888b4a03d341979de25d001"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 73 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/utilities/model_helpers.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d24927bcfb5f0aa464422d8e55895dcadd25346e38b9b8b9353489d7e972e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 35 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.error(\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.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/utilities/upgrade_checkpoint.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77c91d5d010a6efa6b6b09c4df7694f00033f6efd223133834738853dc48d2f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 46 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.error(\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.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/utilities/upgrade_checkpoint.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a9136789999708cf155becf5d39902cc8bde75b79c915643a4a20f7160beed"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 154 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/lightning/pytorch/utilities/migration/utils.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7348d4b31ca31c054d1759cd34848f6c135d358acc1dd67105a8454d1061a8c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 99 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/lightning/pytorch/tuner/batch_size_scaling.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"541ab999ef78676f6c89b0bb5c76d1d571a518a84643eaaf76b5702b1a0ba761"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 276 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/lightning/pytorch/tuner/lr_finder.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0cd2abf50b6b32ad383c30544d50daee6994266010581c106757b0a9637d0fe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 313 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/lightning/pytorch/tuner/lr_finder.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3793553bc5de5c81b026ec54bd04c2ef8374030ca134b28e1b0b84c6e282bf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 162 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/call.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"29142927a09210fc25cc616646030d0d35966750e273d93133baabcb7d351a8c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 191 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/call.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7f2d09b2c531054b9d031bb07316a6becc272ceb1b647543d68b1ea6b27473"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 210 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/call.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5184fba537503ae9e3eb5bd860ce3b0611007b934c2f118fd6a97ca64085f89"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 318 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/call.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abf088358eb15caa1782a55e315ece9ea4bebf33cf5cdc23e63b5d7945b8745"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 329 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6303ceaec171487e1b964e584b27bbecfa57475ab21cd53b3c2f2a682212b80"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 615 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f585b8a4ee3b92624da08495f4a6644aabaf99382a1b54b39ab8f9ad82d46b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 729 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a2ae2313d2873b08ad8359dd51b5662a96ac25249ede546fa23fe8ec16ff35"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 848 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff8d6db09f9b6a56d6f448db6783d2b3f818bfcedf0f715bc0a4dbf398a6ece"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 975 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb409296ec275ad204196a19b20ee5929a57b150e56d238f23c110e0f783e75f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1043 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"862de1581814dfb325f7d5a5255a8043648d1718844e70b157a6266604bd4a4f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1047 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc95d02e8b9ae44ed9657effa7733d4611da88c3c112c1fd03d6be648859cf5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1051 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"9581bb12555d581553b5bef1050e45525371f981ceb3f9dbdd306187c9a04db5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1056 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfdbc8ba5b4e70335812e260a51df4a2ef45d5ee8a1f2a37cb50c93e56914cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1076 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"1297618c7a072b57a3d202fd8804a93243e5de22b08940b2ce3ece5ad44036c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1080 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"54db03e4b789c2bef090439e349c80ccbb526e09bb20d865e39bae03874d295d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1095 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"38eaf2b4fe6f75ae95413d809fb3044f71b3dfa19d593b4e2cefd9c1c0d8ac77"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1102 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/trainer/trainer.py"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acc79a0651f2cd3fbd2ed4f9d5985569faae458283eed5b5fb8f9a2f66eb408"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 93 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/lightning/pytorch/trainer/connectors/signal_connector.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27cbc1bb7533f78f05a92d4511520bab3651c7459d3855e0e55aa971d07f258"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 104 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/lightning/pytorch/trainer/connectors/signal_connector.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aeee06a19023cb350f93a5853a2f451dbe20f763a5faa100c08098a759ceeb0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 106 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/lightning/pytorch/trainer/connectors/signal_connector.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad372a5999788026a80c6147feefe7fca7a205871402ce2b5e5e8340dc51a35"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 123 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/lightning/pytorch/trainer/connectors/signal_connector.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffa9c53785d8966b88b1c8d390ada6fa8c60fe6cb1f65ea11e650277b3b0542"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 94 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b11cda12009fd0d63168003aaab663372d4044557c8ac455d6b921aab7fba89"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 194 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97612a474c461ddf6a33bd41b8edae5b6f605645ebf7f9db2771dbb1ef22b5e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 211 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"313cfbccbaf6bd1da1d0e37f041db988f4943a76deb90418fa9db7bc07513986"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 235 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8e382dc7982298908b16469878cf72772aefcfdc117d25ef2bb20108ae5862"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 248 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ba22a0f4226dbb865876a043f215ba884abbd4a53da798e8bda2d2eb6bfab0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 299 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efdab459d4f487b087f1351bea0c270caf8a68e42fe1537e1064b9320ba4ecd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 360 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb16bc7f867579847a9faf8f6f5f00cab3b26fd41aa90c399d759cc3c01cf9d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 435 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/ddp.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e284179b4f312193aabfd2d18bb5252b991fccf127a85a546222d196c492828"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 383 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/lightning/pytorch/strategies/deepspeed.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ab040be491ee93917027c239d4fc92222f23474762fcc4da4ef8f1d5b2bfa6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 262 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/fsdp.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03d56025d679b46c2698523847cffd921754d425108ffdf93d7f12d100005c9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 322 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/fsdp.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"230091f2697fe7d6b2f150e3592dd8b7f339093db63317069fa31c0ad786eac0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 413 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/fsdp.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"d111d94de599f057b3b0078a17aa4902d7731544d47171a5ee75c453d9059c1b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 476 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/fsdp.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7caf49187109153c01acbba5386d03b47c23ffd5d3b15f18d600b6a6f37a26e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 535 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/strategy.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1f7aba03dfb5fbe6c3ba8dd798e4d5e6cf05928f01477afd29379d6832f9d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 264 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/launchers/multiprocessing.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b371b5669e8a390e3bae2b9e3a59b79812bcf6d771ddd461ff1f6a835665418"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 110 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/strategies/launchers/subprocess_script.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33e93612c6252005e60724fbe8489b2f43980037b7cd904c314886195caced2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 131 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/lightning/pytorch/serve/servable_module_validator.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5b4456e0043114aa749b65141d1ed9f06ff413abafce96ee402de1ac432780"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 234 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/loops/fit_loop.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5777d775c62fdb96feaa3166e9b3d08f07a213f9edf7ee9e4d57a5dd4dd037c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 467 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/loops/fit_loop.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d742df6ba44ab945420613569dd86c85758f2e7cc1a11c0ac393cc8e74917d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 516 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/pytorch/loops/fit_loop.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"2505c4069d264f882a7d71ff440e38421c3828d2eb4eaa9d4fd226aaa43605b6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 184 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/lightning/pytorch/loggers/mlflow.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f181b9342e5809bd776e4fbe15303add23c122ce67e6989336c65fbcc502806d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 196 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/lightning/pytorch/loggers/mlflow.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae9a36f9a2058be54c366e66398e3b020fa0cda07f6dd0ddfe96bf81e5a4abc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 258 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.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/lightning/pytorch/loggers/mlflow.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcee5ee3c907d9cef38c585c78bcb0ba88828b0f2471c60d477cf372bdf1f7d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 479 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/lightning/pytorch/callbacks/finetuning.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb537d7f4856733c2b7e9b74438930ed687c49974d4136f5376684bac1e6646"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 495 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/lightning/pytorch/callbacks/finetuning.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb186fc26c84c3087125c1804ad215a6097837f173bcbfe5cbfe2cf8a16805ea"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 355 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/lightning/pytorch/callbacks/pruning.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6def3db8f2a5daeb9a52c83243aac9fd8ba5742b0a0744bf6c9f2741a8f6d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 364 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/lightning/pytorch/callbacks/pruning.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"693c2beaeaea976883e1a5f941a7f035e99463255c68930aa8bd0d266775688f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 61 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/lightning/pytorch/accelerators/cuda.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fbfd1b5043327c8f27c3f4b48c3536d81ef34217e8e22ab614c7ed217b422f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 63 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/cloud_io.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"449ecf3c743e90dbd45335745aba1fada3525dee7422eb8e788ff90219191c8a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 98 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/cloud_io.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8faebe64681995abf4e26c47b41c2a67851c8e00dc422c5e1fc323cdab94d0b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 45 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.error(\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.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/consolidate_checkpoint.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b92d5e430a4c4bc71a81a6179d591355a3a5a1931f11e29bdc63c76a28a3adb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 48 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.error(\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.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/consolidate_checkpoint.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2abb54ab78565b09faa1941f6b56f7fd6d43b375ef17ef6e9f2a46de4d3ea3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 57 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.error(\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.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/consolidate_checkpoint.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66f532d2d26206a5197ff03a0607c2e5a80520f360b55fb001de2b62e4d221a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 68 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.error(\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.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/consolidate_checkpoint.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaebcc0a2b74de1f13ce44697163ffee703a7966fc06ace76ba240aad2951bff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 281 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/distributed.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa91cebbb440b3a03edb7bb597f4325ef7f9be389ccdbc923848f10978924fec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 45 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/lightning/fabric/utilities/registry.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a12dfae5f70afb7fe71cb514114ee47f353363917a866ccfb28d8ccc5c730b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 98 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/utilities/seed.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8c12bb35b5ae94577d68323ee0e57fd515527fd672955eb02042024eaaae93"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 667 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/lightning/fabric/strategies/deepspeed.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bbf9b471714bf943071beba93abdb8f4e5712d2cdc05ec235ad52bf3071112"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 429 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/bitsandbytes.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ea5e6900cacee935168e18128cf24b645380df238488eb76b95dcf92bf6082"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 169 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/transformer_engine.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6680708ef2fda6bfe161a292e5d1218f541f025309a6d03dd2f0968d06b579"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 177 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/precision/transformer_engine.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da2b9e7de090b762bf4769727afb76a781c2704d5e0bcb1008e4c21503676cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 104 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/io/torch_io.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bb29619a53afaa62aeb3bbe8639eb801abd6f0c02a1b6e0b877776d4eeb2cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 73 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/io/xla.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e0afa44993ca1210989fe735fce9a1855d3feba041f93967349bd69f39f490"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 61 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/environments/lsf.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"98222b5e8dc578bda4fcc7b0615994f65a46bc3f4681dd9a37c2d0a8f0f8aa74"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 63 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/environments/lsf.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13867698df90ee7639ac807db8135256124e668e5dfeb2f5652c69af54212cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 192 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/environments/lsf.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12714cc9940daa3e790fd7de63ce3348cd9b65acbdb64364a5b0f4f444fb9d7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 198 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/environments/lsf.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed047a2bcb6b1b399afbbc9f9f6dba699dca8acb12329118d9c64c0a787c2dd7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 70 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/environments/slurm.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"46152a038db8d84951d745b74ee9b6122538ed6168d65ad4d2d62aea318ead64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 98 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/environments/slurm.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7843be757c09c0269e42da9b98c2150dac5aefec14e87772bdb700d38e4168d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 41 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/environments/torchelastic.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"813d70f320fbb9c779798bdb4b140fb326d2534958af225cdf4a92c0c5924d19"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 50 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.debug(\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.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lightning/fabric/plugins/environments/torchelastic.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d127d36004207b1c1639456e05d2e76386dad967915ea2db2b4bbb6e95143ce"}}],"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-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-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-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-668","guid":"e2cb99db-6d24-b056-b0d0-885a733ec403","name":"Exposure of Resource to Wrong Sphere","shortDescription":{"text":"Exposure of Resource to Wrong Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/668.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"}]},{"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":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-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-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":39,"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."]}]}