{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"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":"parser.get_train_args (cyclomatic 112): parser.get_train_args has cyclomatic complexity 112 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/parser.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07bc0182ac9baab68e1e185c493fc499d32e35bbbec6681ebd4b1627b9ca1e3"}},{"ruleId":"D1","level":"warning","message":{"text":"adapter._setup_lora_tuning (cyclomatic 47): adapter._setup_lora_tuning has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/adapter.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebbb038fd2fc5f6bdf07b6f5512a97a12c74844e4dc4c9e428dc5c16c174ad5"}},{"ruleId":"D1","level":"warning","message":{"text":"liger_kernel.apply_liger_kernel (cyclomatic 35): liger_kernel.apply_liger_kernel has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/liger_kernel.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d122c741466a047ec369196402ef065353ef53cbe3802395d1540d6bc45948d9"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIDatasetConverter.__call__ (cyclomatic 34): OpenAIDatasetConverter.__call__ has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde1059917c7b8f3628b1316bffeab89fb268287c8b964b6157f4beda082773c"}},{"ruleId":"D1","level":"warning","message":{"text":"quantization.configure_quantization (cyclomatic 34): quantization.configure_quantization has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/quantization.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"120d34f3c8da926e005dfab73690bd7d725e62cb21f9b3f840b69d6fdd75a58a"}},{"ruleId":"D1","level":"warning","message":{"text":"HuggingfaceEngine._process_args (cyclomatic 33): HuggingfaceEngine._process_args has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/hf_engine.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f993582362238e3810f57a0fd749f8eb7553a7a64bf7934790dd10e010dbde58"}},{"ruleId":"D1","level":"warning","message":{"text":"chat._process_request (cyclomatic 32): chat._process_request 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/llamafactory/api/chat.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e1b558e5bc461dd1d0868595cf87037aa2856577f4fa6371b35c44865c701b"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiModalDataCollatorForSeq2Seq.__call__ (cyclomatic 31): MultiModalDataCollatorForSeq2Seq.__call__ has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/collator.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8770c0c7484913939fd85daf894d8e7c976e59707fd583330a21d2f22188184"}},{"ruleId":"D1","level":"warning","message":{"text":"tuner._training_function (cyclomatic 31): tuner._training_function has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/tuner.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d00936b201449185c5436cac60d1f9becc0ead630374f6400cb100632fc3b49"}},{"ruleId":"D1","level":"warning","message":{"text":"VllmEngine._generate (cyclomatic 30): VllmEngine._generate has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/vllm_engine.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8bb8f1ac243f3790938bef3b514d53e2b8d4d87e52ad72b7b508d90444200c"}},{"ruleId":"D1","level":"warning","message":{"text":"loader.load_model (cyclomatic 29): loader.load_model has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/loader.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"65759986c31b16b3689fd5a641233142bb4a8335b2992e52b29e7cc78900dd5e"}},{"ruleId":"D1","level":"warning","message":{"text":"Runner._parse_train_args (cyclomatic 28): Runner._parse_train_args has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/runner.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1efa16294de236c51145d962ca81b48fa39c0f5277e2745ecc095de6c4a8858"}},{"ruleId":"D1","level":"warning","message":{"text":"PackedSupervisedDatasetProcessor.preprocess_dataset (cyclomatic 27): PackedSupervisedDatasetProcessor.preprocess_dataset has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/supervised.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4cd71a89846e476f59234ab7c4776d330f5aabbbc7f67a2a8c830198669f13"}},{"ruleId":"D1","level":"warning","message":{"text":"moe.add_z3_leaf_module (cyclomatic 27): moe.add_z3_leaf_module has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/moe.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2261d6cb847dbb88bbe5216bcd59917ad09c4fe9fee225522f69abb282fe25"}},{"ruleId":"D1","level":"warning","message":{"text":"patcher.patch_config (cyclomatic 27): patcher.patch_config has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/patcher.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25f79c708cc5f5b3a8f48428c35fbc8c384d4bec926629284a50dcfb07b16ae"}},{"ruleId":"D1","level":"warning","message":{"text":"SGLangEngine._generate (cyclomatic 26): SGLangEngine._generate has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/sglang_engine.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c57b3eed6893f271b2564b00a20b75485c5624fc0410bc51cacb6567aefb1bd"}},{"ruleId":"D1","level":"warning","message":{"text":"adapter._setup_freeze_tuning (cyclomatic 26): adapter._setup_freeze_tuning has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/adapter.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2ef56216182f1e856b982dfc3e8a0bf6d5c36f80ed4fe295e2232ac9643ed0"}},{"ruleId":"D1","level":"warning","message":{"text":"attention.configure_attn_implementation (cyclomatic 26): attention.configure_attn_implementation has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/attention.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5ab5c9c0424559e35a81f587e647d195b8b48421caed91e4a64bc3656c9050"}},{"ruleId":"D1","level":"warning","message":{"text":"FinetuningArguments.__post_init__ (cyclomatic 25): FinetuningArguments.__post_init__ has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/finetuning_args.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"f183d4fd9102078aeb6ffe2b0353c571993425b6fc6e107be5d7ba7d9d402b8a"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiModalDataCollatorForSeq2Seq._compute_rope_position_ids_with_packing (cyclomatic 24): MultiModalDataCollatorForSeq2Seq._compute_rope_position_ids_with_packing 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/llamafactory/data/collator.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf8a3965f127c8d4c2576f992134ae7dcd94eeff92e2f31d372c781617ea9d5"}},{"ruleId":"D1","level":"warning","message":{"text":"peft.get_freeze_model (cyclomatic 24): peft.get_freeze_model 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/llamafactory/v1/plugins/model_plugins/peft.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d653516ef8237a56a46a554bbe2d7e5bc52153c40ddd6743b018887705bff958"}},{"ruleId":"D1","level":"warning","message":{"text":"FSDP2Engine._load_weights_from_hf_checkpoint (cyclomatic 24): FSDP2Engine._load_weights_from_hf_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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b19dd8c34affc4d3efa5e8c6b55cbd4558a43b0378b876b143538f2838d4aa"}},{"ruleId":"D1","level":"warning","message":{"text":"loader._load_single_dataset (cyclomatic 23): loader._load_single_dataset has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/loader.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"930d454fb0fece29aa44d8c4a3c0217641ffaec8a3c8f577d1fc9e8c3f64ca55"}},{"ruleId":"D1","level":"warning","message":{"text":"launcher.launch (cyclomatic 23): launcher.launch has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/launcher.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e403c7538932a8c74cb23c4527cf1603cc0d063298f4c098e3ad1b74c40597b"}},{"ruleId":"D1","level":"warning","message":{"text":"patcher.patch_model (cyclomatic 23): patcher.patch_model has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/patcher.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61ea7c3c3293d405cf6d6f14d6de7fff0f6df21632c4e1c43eaa6b6a6e8ece2"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.run_sft (cyclomatic 23): workflow.run_sft has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/sft/workflow.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c90413282fb57d13945c86bf130fb8b954adac8d047660921c143dd5e7ffcf"}},{"ruleId":"D1","level":"warning","message":{"text":"SharegptDatasetConverter.__call__ (cyclomatic 22): SharegptDatasetConverter.__call__ has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ce2df369b0fa67bc6d7783d12998c3f7884a077e05bf23b02f0ff443159c2d"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen2OmniPlugin.process_messages (cyclomatic 22): Qwen2OmniPlugin.process_messages 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":3178}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b31a7b3c678bc6b30e427770161e24c7df59c14a13313e2d82ce440e0ff7a1e"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.get_dataset_list (cyclomatic 22): parser.get_dataset_list 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/llamafactory/data/parser.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a804d3c35438a94a316e9568e1746999ce459e34348d509fa4b282f77beae73"}},{"ruleId":"D1","level":"warning","message":{"text":"trainer_utils._create_galore_optimizer (cyclomatic 22): trainer_utils._create_galore_optimizer 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/llamafactory/train/trainer_utils.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4770c51934656a5139c78e6fa20677a049daea5d5c95ff9a9a805e2ab088f43"}},{"ruleId":"D1","level":"warning","message":{"text":"tuner.export_model (cyclomatic 22): tuner.export_model 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/llamafactory/train/tuner.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"03eceeec38b9ee2b8dd7c1d289021d94c3c23f0be82d3cc2bbfbb90756cfd015"}},{"ruleId":"D1","level":"warning","message":{"text":"format._to_hf_messages (cyclomatic 22): format._to_hf_messages 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/llamafactory/v1/core/rendering/format.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1db7291a516e0c640785a886e371da3abac7d54b1f4b0e1485370ee73530c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"FSDP2Engine.prepare_model (cyclomatic 22): FSDP2Engine.prepare_model 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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3381dae6b9b32790cd162f34f8a214db104f9806f2cf76dd4fc43c99937214b"}},{"ruleId":"D1","level":"warning","message":{"text":"Glm5NextTemplate._encode (cyclomatic 21): Glm5NextTemplate._encode 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/llamafactory/data/template.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"99923c284eedccada2a25e1f541f57073bb9838078b3dc6056c236eb3989420f"}},{"ruleId":"D1","level":"warning","message":{"text":"DataArguments.__post_init__ (cyclomatic 21): DataArguments.__post_init__ has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/data_args.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7c363321133a68aa8a7909ac36f1d1c0b16bff87990db7b2866337e231679c"}},{"ruleId":"D1","level":"warning","message":{"text":"collation._align_audio (cyclomatic 21): collation._align_audio 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/llamafactory/v1/core/utils/collation.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4be594ea50274316e960309cc66452e159d35090a855cf201e79e5cf6d7d5e3"}},{"ruleId":"D1","level":"warning","message":{"text":"FSDPTurboFSDP2Engine.prepare_model_ep (cyclomatic 21): FSDPTurboFSDP2Engine.prepare_model_ep 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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c75a72abc38e68720a205427ff24d165b4f901484759a6b525b8ef88decfc66"}},{"ruleId":"D1","level":"warning","message":{"text":"AlpacaDatasetConverter.__call__ (cyclomatic 20): AlpacaDatasetConverter.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff61d02efff9c942785725ecc3a0dbca1b1e58b91e4bc0a3225a54e8b7e7cfe2"}},{"ruleId":"D1","level":"warning","message":{"text":"trainer_utils._create_apollo_optimizer (cyclomatic 20): trainer_utils._create_apollo_optimizer has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/trainer_utils.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc1ee41b1c18e370e72939cf5f9699371ffe8324fe9bd976df8d0f3cd23cb41"}},{"ruleId":"D1","level":"warning","message":{"text":"launcher.launch (cyclomatic 20): launcher.launch has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/launcher.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29c300526bc6aade239b8bee72d2e77b19a50d66527a630a65d0091789551d0"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniCPMVPlugin.process_messages (cyclomatic 19): MiniCPMVPlugin.process_messages has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"259077f7875ce46bdd6230aaeaa9a792ac8c3e6df4bda1eb08d9ed11d7e53c45"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniCPMV4_6Plugin.process_messages (cyclomatic 19): MiniCPMV4_6Plugin.process_messages has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"547a42bb6298f9f81eea4b6d74fde71610132becf5b1ac0b926de088e396520c"}},{"ruleId":"D1","level":"warning","message":{"text":"MegatronBridgeArguments.__post_init__ (cyclomatic 19): MegatronBridgeArguments.__post_init__ 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/llamafactory/hparams/megatron_bridge_args.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"32169b340c631801fd5f1a7b1735bc015ca85a7f988981a9e52ead48e6d601ab"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelEngine._init_model (cyclomatic 19): ModelEngine._init_model 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/llamafactory/v1/core/model_engine.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aafad4a5e221781761973cc36c77c4cbce11d00854b95df0c3cbfd36e4c0840"}},{"ruleId":"D1","level":"warning","message":{"text":"collation._align_grid_media (cyclomatic 19): collation._align_grid_media 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/llamafactory/v1/core/utils/collation.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3619e77a367651f2ef55d6cf9a401adb0831b1704c5778b4c4102bd8b6196c"}},{"ruleId":"D1","level":"warning","message":{"text":"fsdpturbo.clip_grad_norm_ (cyclomatic 19): fsdpturbo.clip_grad_norm_ 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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d89752da5c17514c35af4afcd87bdce855dc51ba8bb294c21e2295842c2115a"}},{"ruleId":"D1","level":"warning","message":{"text":"switcher.document.addEventListener(\u0022DOMContentLoaded\u0022)::hideOtherLanguageToc (cyclomatic 19): switcher.document.addEventListener(\u0022DOMContentLoaded\u0022)::hideOtherLanguageToc 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":"docs/_static/js/switcher.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2356cea8f2381080e769a1b65a32aa9230e3dee82b6573ae33f36da2f14c51e"}},{"ruleId":"D1","level":"warning","message":{"text":"InternVLPlugin._get_mm_inputs (cyclomatic 18): InternVLPlugin._get_mm_inputs has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6e9357ec91bbceb4330143f970241485a49dd736b3fecb419dfbd4748b4f9c"}},{"ruleId":"D1","level":"warning","message":{"text":"parser._check_extra_dependencies (cyclomatic 18): parser._check_extra_dependencies 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/llamafactory/hparams/parser.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e692fb277a7959d825f66b09a1054de859a8e4bd936952630ea83d89c4c1f41"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomSeq2SeqTrainer.__init__ (cyclomatic 18): CustomSeq2SeqTrainer.__init__ has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/sft/trainer.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"404c81b75f350ef341bcdadc8aa5fc6550e4f8cd3d1d196d38a529978046c9d2"}},{"ruleId":"D1","level":"warning","message":{"text":"Glm5NextPlugin._decode_video (cyclomatic 17): Glm5NextPlugin._decode_video 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":2796}}}],"partialFingerprints":{"codehealthFindingId/v1":"716bca12dd10b64c43778bafe459f3fd98f7388f955271e6c35791088b532b6d"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.run_sft (cyclomatic 17): workflow.run_sft 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/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf87f63dd8f72606c77545502877b0462dd12afc4e8b7735f2e4898ac209a18"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseTrainer.fit (cyclomatic 17): BaseTrainer.fit 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/llamafactory/v1/core/base_trainer.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"80490e2531c7457ff2d36249c5a691b0977c6be926f2db7de445d05790ee731f"}},{"ruleId":"D1","level":"warning","message":{"text":"Muon.step (cyclomatic 17): Muon.step has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/optimizers/muon_optimizer.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a0c0c9d68face37f31f4f4ebc493d9ec3326cbea9bdea40dabe10be14c9a10"}},{"ruleId":"D1","level":"warning","message":{"text":"MMPluginMixin._validate_input (cyclomatic 16): MMPluginMixin._validate_input has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"946805ce7b06dbf0dbae3560f626412eecaf0c5021930bbf16547d2388f58827"}},{"ruleId":"D1","level":"warning","message":{"text":"MossVLPlugin.get_mm_inputs (cyclomatic 16): MossVLPlugin.get_mm_inputs has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b0ff88cf138f161487f4f6adfd1ebcf75b36974d667aba8975e83aaf834efe"}},{"ruleId":"D1","level":"warning","message":{"text":"embedding.resize_embedding_layer (cyclomatic 16): embedding.resize_embedding_layer 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/llamafactory/model/model_utils/embedding.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"309a2492d5b4cc5ecda06478212fac18ec8772bd4e494566105a817b11ec92bd"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChunkedLinearCrossEntropy.forward (cyclomatic 16): _ChunkedLinearCrossEntropy.forward has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/chunk_loss.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"55241f63de027352703567730b3ea83425bc794222683ac8f269d58383af40d0"}},{"ruleId":"D1","level":"warning","message":{"text":"LigerKernel._apply (cyclomatic 16): LigerKernel._apply 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/llamafactory/v1/plugins/model_plugins/kernels/liger_kernel_ops.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c99500d61cf6e020abf58115d8ed9f2a916bd6c773023001fa6540737270608"}},{"ruleId":"D1","level":"warning","message":{"text":"export.save_model (cyclomatic 16): export.save_model 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/llamafactory/webui/components/export.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac26fc7751b6e980a09c46ec6e7ef92d5d38c4d92b7d7ddca2959f9caf925ca"}},{"ruleId":"D1","level":"warning","message":{"text":"Runner._initialize (cyclomatic 16): Runner._initialize 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/llamafactory/webui/runner.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3a5deffa9b7783ccfc1d72676a3e65bccb64af098ee17909ec47f1a996d4f9"}},{"ruleId":"D1","level":"warning","message":{"text":"Runner.monitor (cyclomatic 16): Runner.monitor 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/llamafactory/webui/runner.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"411a54476f7679c7507eb93a0f1b1b46c475a501e329963c959ecd4add5928ae"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.get_train_args (cognitive 137): parser.get_train_args has cognitive complexity 137 (threshold 15). Drivers by points: if/else 65 (92 pts), boolean chains 44, ternaries 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/parser.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa37c70ad56a8446fc2f7ad0146302313a39b07b0879d5809bc689e601e7ebfa"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter._setup_lora_tuning (cognitive 101): adapter._setup_lora_tuning has cognitive complexity 101 (threshold 15). Drivers by points: if/else 37 (83 pts), boolean chains 8, loops 3 (7 pts), ternaries 1 (3 pts) (nesting depth added 52). 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/llamafactory/model/adapter.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"683e1654b4f271869ee71c47b9ad435a35da8abc4e29290513f8a48e4b8d3586"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2OmniPlugin.process_messages (cognitive 67): Qwen2OmniPlugin.process_messages has cognitive complexity 67 (threshold 15). Drivers by points: if/else 11 (28 pts), ternaries 5 (21 pts), loops 6 (16 pts), boolean chains 2 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":3178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adfd7570cec33a64b6d23c3d0d98026dd3f8f50a02710cc4541b9761f72e421"}},{"ruleId":"D2","level":"warning","message":{"text":"quantization.configure_quantization (cognitive 63): quantization.configure_quantization has cognitive complexity 63 (threshold 15). Drivers by points: if/else 24 (56 pts), boolean chains 5, error handling 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/llamafactory/model/model_utils/quantization.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8337719e73a6fef5ba75b729345a7f44b5695a66cdedb4d93d278639257fccf2"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseTrainer.fit (cognitive 56): BaseTrainer.fit has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (42 pts), ternaries 2 (7 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/base_trainer.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dac61e848953ff79cc2229adc9f626e6bee0a5595b52ce9448d8192354dacf1"}},{"ruleId":"D2","level":"warning","message":{"text":"chat._process_request (cognitive 54): chat._process_request has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (38 pts), boolean chains 7, loops 2 (4 pts), ternaries 1 (3 pts), error handling 1 (2 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/api/chat.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e664249a66d5103f759693a62865613007ed56bfaab77f4f743ae213152186"}},{"ruleId":"D2","level":"warning","message":{"text":"FSDP2Engine._load_weights_from_hf_checkpoint (cognitive 53): FSDP2Engine._load_weights_from_hf_checkpoint has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (41 pts), loops 5 (12 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e2f6198066efadbdc233de991019b77193a552743dd5f9a6de5a8ea5af61c4"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIDatasetConverter.__call__ (cognitive 45): OpenAIDatasetConverter.__call__ has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 9, ternaries 5 (6 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87d5e110114b9f9289519533f6c1a6a7115eca7d43eedfe92cc4395f0a5ee80"}},{"ruleId":"D2","level":"warning","message":{"text":"loader.load_model (cognitive 45): loader.load_model has cognitive complexity 45 (threshold 15). Drivers by points: if/else 24 (38 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/loader.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d174223417d0277176636d0ba1137ab6001dbc73e2a4a9b44fefb9f5243ef4a"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiModalDataCollatorForSeq2Seq.__call__ (cognitive 44): MultiModalDataCollatorForSeq2Seq.__call__ has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 10, loops 3 (5 pts), ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/collator.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"278176b7a266a1c0476c453378e5e01a257d1d42be7db1edb843cb41d94bb7ea"}},{"ruleId":"D2","level":"warning","message":{"text":"PackedSupervisedDatasetProcessor.preprocess_dataset (cognitive 44): PackedSupervisedDatasetProcessor.preprocess_dataset has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 13, loops 3 (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/llamafactory/data/processor/supervised.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ade7b68820ac8c07788401940e5702193d4b79df78a5c7ccac563fd32168b0c"}},{"ruleId":"D2","level":"warning","message":{"text":"format._to_hf_messages (cognitive 44): format._to_hf_messages has cognitive complexity 44 (threshold 15). Drivers by points: if/else 8 (25 pts), error handling 2 (10 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/rendering/format.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8fbcf5c40b9609bcdf3d2e34d57aaf98360316a775df2f4e8114d6337e3c9f"}},{"ruleId":"D2","level":"warning","message":{"text":"Muon.step (cognitive 42): Muon.step has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (31 pts), ternaries 2 (6 pts), loops 3 (5 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/optimizers/muon_optimizer.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd92d20838f9bf1df1c740047d1c688b5cef54f7b33441d03815b0f1fd31bf7"}},{"ruleId":"D2","level":"warning","message":{"text":"FSDP2Engine.prepare_model (cognitive 41): FSDP2Engine.prepare_model has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (28 pts), ternaries 3 (7 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"16040132fd72a17aca89af9bff3c90362d0533c70d51fbb4d25ffc24674404b8"}},{"ruleId":"D2","level":"warning","message":{"text":"trainer_utils._create_galore_optimizer (cognitive 40): trainer_utils._create_galore_optimizer has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 7 (13 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/trainer_utils.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"10728c4ece68ec86d169020e813b983459116f0e7333415a62ba080e304b5a9a"}},{"ruleId":"D2","level":"warning","message":{"text":"trainer_utils._create_apollo_optimizer (cognitive 40): trainer_utils._create_apollo_optimizer has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 7 (13 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/trainer_utils.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"531782e66f762c54fa87e7c66a4489b6fa71996742daead4218b6fea91bd44fe"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter._setup_freeze_tuning (cognitive 39): adapter._setup_freeze_tuning has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (25 pts), loops 5 (7 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/adapter.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5432ef7cc14bb60224f669a535181fce74e6321be291122ed14aa882f3aa50"}},{"ruleId":"D2","level":"warning","message":{"text":"FSDPTurboFSDP2Engine.prepare_model_ep (cognitive 39): FSDPTurboFSDP2Engine.prepare_model_ep has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ee8e21bc2c7cf45b9c68ed2b5e1b479ed462f1605fd4779daa3ab26d54d282"}},{"ruleId":"D2","level":"warning","message":{"text":"HuggingfaceEngine._process_args (cognitive 38): HuggingfaceEngine._process_args has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (26 pts), ternaries 7, boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/hf_engine.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0494ef3b145139d47c9b7a7f0e9948995237defca5aa5db9afb339560c3f631"}},{"ruleId":"D2","level":"warning","message":{"text":"Glm5NextTemplate._encode (cognitive 38): Glm5NextTemplate._encode has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (31 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"481d55d69b57530cb167be91c7d96fcc56723e6884401556b60dfdd680139735"}},{"ruleId":"D2","level":"warning","message":{"text":"peft.get_freeze_model (cognitive 38): peft.get_freeze_model has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (25 pts), loops 6 (11 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/peft.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ca416c8402519b88eaed77b2bf0cd8fa9a87d8b87cadc5207e942b10ed989a"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.get_dataset_list (cognitive 34): parser.get_dataset_list has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 2 (6 pts), boolean chains 5, 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/llamafactory/data/parser.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6e994a80550833905192bba826135166f2c1112eaadebe6bcc516a90117ce0"}},{"ruleId":"D2","level":"warning","message":{"text":"attention.configure_attn_implementation (cognitive 34): attention.configure_attn_implementation has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (32 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/attention.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb0100f563921e64fdf2a87947b6359ca4b49cbad9ccb5eca9c9a187b7b4331"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner._parse_train_args (cognitive 33): Runner._parse_train_args has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 7, ternaries 4 (6 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/runner.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd007ba944948d5af9cdaf804c3598fc50c69a129d00de7f35c4923063434b79"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiModalDataCollatorForSeq2Seq._compute_rope_position_ids_with_packing (cognitive 32): MultiModalDataCollatorForSeq2Seq._compute_rope_position_ids_with_packing has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 6 (10 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/collator.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"72901583160bb6abb8f8c0597045ed8ef521b70d24409025640f3a273be9b666"}},{"ruleId":"D2","level":"warning","message":{"text":"GLM4VPlugin.process_messages (cognitive 32): GLM4VPlugin.process_messages has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 6 (10 pts), loops 5 (10 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":3026}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75106eb8906f7120f0a0c51c9deaf6ee8f21280ef047442b57cac7b27caf219"}},{"ruleId":"D2","level":"warning","message":{"text":"VllmEngine._generate (cognitive 31): VllmEngine._generate has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 10, ternaries 6 (7 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/vllm_engine.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f6d1cad97131e9ea8f8172b0abe7b0747505daf4831f06bdbe59878bf55165"}},{"ruleId":"D2","level":"warning","message":{"text":"patcher.patch_config (cognitive 31): patcher.patch_config has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 10, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/patcher.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd572fea39647f84a186aa88f5d5e902eaadc86d4b967967405a634ccc340e5"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniCPMVPlugin.process_messages (cognitive 30): MiniCPMVPlugin.process_messages has cognitive complexity 30 (threshold 15). Drivers by points: loops 8 (17 pts), if/else 7, boolean chains 3, ternaries 1 (3 pts) (nesting depth added 11). 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"1079dd2167a765059e1a9566c728fd342b633f72b353c8531a16f486b4422660"}},{"ruleId":"D2","level":"warning","message":{"text":"Glm5NextPlugin._decode_video (cognitive 30): Glm5NextPlugin._decode_video has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 2 (3 pts), boolean chains 2, 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":2796}}}],"partialFingerprints":{"codehealthFindingId/v1":"91444e0ea4dbded2d666dd8f469207d7d9ff23cd8da623b6e4875d60025761e1"}},{"ruleId":"D2","level":"warning","message":{"text":"tuner._training_function (cognitive 30): tuner._training_function has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 4, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/tuner.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1710f029e8ec874b20af5c284afe941785ba20c8a5a50aeac6958d19da7b7751"}},{"ruleId":"D2","level":"warning","message":{"text":"tuner.export_model (cognitive 30): tuner.export_model has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (26 pts), boolean chains 2, error handling 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/llamafactory/train/tuner.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd0703c9c7a0923dce86097261a261d1a028930faac2be09b7ea15603ad1858"}},{"ruleId":"D2","level":"warning","message":{"text":"collation._align_audio (cognitive 30): collation._align_audio has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 4 (5 pts), ternaries 2, 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/llamafactory/v1/core/utils/collation.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabf80a13babce8db312c7525424ff60b595864da2d24eabe686a3a7e42eb104"}},{"ruleId":"D2","level":"warning","message":{"text":"MossVLPlugin.get_mm_inputs (cognitive 29): MossVLPlugin.get_mm_inputs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fec6a02c004ab11dcd6a5e50f975e39491b86fe14dcd63725d3535b58d283dd"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniCPMV4_6Plugin.process_messages (cognitive 29): MiniCPMV4_6Plugin.process_messages has cognitive complexity 29 (threshold 15). Drivers by points: loops 8 (17 pts), if/else 7 (9 pts), boolean chains 3 (nesting depth added 11). 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c0eb97dbaac449d6638e8da5d0e90e52751785a517f0d7759f71d4e06c738a"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.run_sft (cognitive 29): workflow.run_sft has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (24 pts), ternaries 3, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/sft/workflow.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0041b52c8968a5684a6fcb1ede434a4d68242a4818cbf8fd52bc770356537fbc"}},{"ruleId":"D2","level":"warning","message":{"text":"FSDP2Engine.shard_model (cognitive 29): FSDP2Engine.shard_model has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (7 pts), ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"676e6b4a19ef2b7e1d4cd6386d3ad8646fecff5c58239d63b9d6d5b7943c88c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner.monitor (cognitive 29): Runner.monitor has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), ternaries 5, error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/runner.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67e97622d1dcd83fb0e470eda692be670a3744d8e902a1ddb17e4e6540cf83a"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2VLPlugin._regularize_videos (cognitive 28): Qwen2VLPlugin._regularize_videos has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":2279}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f224b24fc7b1005898a04089cd4c43b6c9adf47014b7e08c9d2e629fc09c4e4"}},{"ruleId":"D2","level":"warning","message":{"text":"FinetuningArguments.__post_init__ (cognitive 28): FinetuningArguments.__post_init__ has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 11 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/finetuning_args.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47d8de7161174c1e97dd1b2489671aa4922edd31f23d4074ef259911f6cda4d"}},{"ruleId":"D2","level":"warning","message":{"text":"escape._escape_special_in_messages (cognitive 28): escape._escape_special_in_messages has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 1 (6 pts), error handling 1 (4 pts), loops 2 (3 pts) (nesting depth added 18). 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/llamafactory/v1/core/rendering/escape.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d99e3d9c9a7b9a5966f1ee2a03c3db50d459d5f63057f4e59afe7a94883954"}},{"ruleId":"D2","level":"warning","message":{"text":"Renderer.process_samples (cognitive 28): Renderer.process_samples has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/rendering/rendering.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cbc71b78f6f0b40b964e2b29e633e15c8c505da5558174dda50c387d5a59ec"}},{"ruleId":"D2","level":"warning","message":{"text":"SGLangEngine._generate (cognitive 27): SGLangEngine._generate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 9, ternaries 6 (7 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/sglang_engine.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"9412b4e4963a6b82c6b55bc4084591925d864186895e75fa34edb76e1f30f7df"}},{"ruleId":"D2","level":"warning","message":{"text":"loader._load_single_dataset (cognitive 27): loader._load_single_dataset has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 5, loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/loader.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85263388937bfe253c6a9aa48cc89f3f2f98aa80b239324fba4cc2eb8b0b4a3"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelEngine._init_model (cognitive 27): ModelEngine._init_model has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 2, error handling 1 (2 pts), ternaries 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/model_engine.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"245c9bb65f266f1ac55d1da8e05b278ea1d1838652d529b3b9f3e27431ad379e"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetConverter._find_medias (cognitive 26): DatasetConverter._find_medias has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (10 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f276d8b8a7537867d74ade2247ee5fdcd6a125a90146bd7e89e26b38e7d50603"}},{"ruleId":"D2","level":"warning","message":{"text":"SharegptDatasetConverter.__call__ (cognitive 26): SharegptDatasetConverter.__call__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7, ternaries 5 (6 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6d0521dc2c90105881b923c02afdb3de3bb67562db175e06ddaa32fc93b0f7"}},{"ruleId":"D2","level":"warning","message":{"text":"data_utils.split_dataset (cognitive 26): data_utils.split_dataset has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 1 (4 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/data_utils.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a6d0fadc59da275fe325b01b5dfcc9f6e10d0f1f7c57e82021ca9f63131602"}},{"ruleId":"D2","level":"warning","message":{"text":"MMPluginMixin._regularize_videos (cognitive 26): MMPluginMixin._regularize_videos has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8be351c763a1181977f7f2e745b08b9a2f10e67d9cf375bfeca625889f3cca"}},{"ruleId":"D2","level":"warning","message":{"text":"moe.add_z3_leaf_module (cognitive 26): moe.add_z3_leaf_module has cognitive complexity 26 (threshold 15). Drivers by points: if/else 24, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/moe.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f8818ca87f409b2042f3124eaed62b29b6016e76ae590b651e5fe033215574"}},{"ruleId":"D2","level":"warning","message":{"text":"patcher.patch_model (cognitive 26): patcher.patch_model has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 10, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/patcher.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c0ee4a3ce7610a0da865483ce7477e906f96de5f3325d4924d42eb99c570dc"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.run_dpo (cognitive 26): workflow.run_dpo has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 1 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f229ce2d777eb61a6b4279451c56c2d97890b320718d99615547309f3b0f838f"}},{"ruleId":"D2","level":"warning","message":{"text":"cli_sampler.run_chat (cognitive 25): cli_sampler.run_chat has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 3 (9 pts), loops 2 (5 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/samplers/cli_sampler.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d9e425dabe532047b8e05415e30465541a58e9e03fc3a979c37314131139e8"}},{"ruleId":"D2","level":"warning","message":{"text":"fsdpturbo.clip_grad_norm_ (cognitive 24): fsdpturbo.clip_grad_norm_ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, ternaries 4, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81649386fd5661f7b9d891a0a8c6b442d5712fcac545e98c1386ca34bd33d57"}},{"ruleId":"D2","level":"warning","message":{"text":"InternVLPlugin._get_mm_inputs (cognitive 23): InternVLPlugin._get_mm_inputs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, ternaries 2 (6 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"8789c656cb517a7d54c9e258b7a088adabf9ad40858172626223ecfe5fd7feb5"}},{"ruleId":"D2","level":"warning","message":{"text":"DataArguments.__post_init__ (cognitive 23): DataArguments.__post_init__ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/data_args.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"add5c94cee10d257d762fd0335169015091e7609f66f7a64935ed6f90d94f6d3"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.run_sft (cognitive 23): workflow.run_sft has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 3, 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/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d113e24054a5979cd9c5429e8e3c317ab502b119689681475d928ead2a14e8"}},{"ruleId":"D2","level":"warning","message":{"text":"collation._align_grid_media (cognitive 23): collation._align_grid_media has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, loops 2, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/utils/collation.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e37236011c79868a562d1fa314ab42f6ba6931f45dcd3dd9f2159123f421a52"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4ToolUtils.tool_formatter (cognitive 22): Gemma4ToolUtils.tool_formatter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (19 pts), ternaries 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/llamafactory/data/tool_utils.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"802f52de6c19b4565c55cbc4d4f9e5229eef11b403e4f8d50d3268a23684ae19"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.run_pt (cognitive 22): workflow.run_pt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 2 (7 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bd518e0dda9e1d2fa0a21b9db29cdcc94c8e7778b91f8a0e4d0144c1f4950c"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomKTOTrainer.__init__ (cognitive 22): CustomKTOTrainer.__init__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/kto/trainer.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bcc82181f1bdc1119a3a2601894c0f9752626c5e8be011b1bbc3bbb8ef0f82"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.run_pt (cognitive 22): workflow.run_pt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 2 (7 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/pt/workflow.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"873f042c30d77357ff36837e13da1301d5978a13d2776020019c23750f2c3f90"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomSeq2SeqTrainer.__init__ (cognitive 22): CustomSeq2SeqTrainer.__init__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/sft/trainer.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18a597a52d4efc2e5d9d2043c35e74e12e61b7a44571aea80c66b137127ed9a"}},{"ruleId":"D2","level":"warning","message":{"text":"batching._pack_padding_free_samples (cognitive 22): batching._pack_padding_free_samples has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/batching.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e187124e5ac6abcf72fded30104fd6f09b990decbcc0bacda77ea67f2adb24"}},{"ruleId":"D2","level":"warning","message":{"text":"AlpacaDatasetConverter.__call__ (cognitive 21): AlpacaDatasetConverter.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 5, loops 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d812c9e5ca45201321faaba4683cd13487e9a94ee1fffe2cbbeeba24a808250f"}},{"ruleId":"D2","level":"warning","message":{"text":"LlavaNextVideoPlugin.process_messages (cognitive 21): LlavaNextVideoPlugin.process_messages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c2a84201db2fbd3082e9284fefdfd926b2077aaba8a9c5202f3e7699d20eec"}},{"ruleId":"D2","level":"warning","message":{"text":"template.get_template_and_fix_tokenizer (cognitive 21): template.get_template_and_fix_tokenizer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddca87ad202510676f4f6ccd5d578c35d0c87c43f921d620bb9c7e1d3bf8005"}},{"ruleId":"D2","level":"warning","message":{"text":"embedding.resize_embedding_layer (cognitive 21): embedding.resize_embedding_layer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/embedding.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7d1d7e8685de1637cebcc9267ef8ed44be52606acf3e199f8b9b2808ec6b1f"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.run_kto (cognitive 21): workflow.run_kto has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (3 pts), boolean chains 2, 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/llamafactory/train/kto/workflow.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7485485fb80313e4a9b290b1641bd51a933b7baffdcce8b42539203b73a3e06"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomPPOTrainer.ppo_train (cognitive 21): CustomPPOTrainer.ppo_train has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 2 (5 pts), loops 2 (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/llamafactory/train/ppo/trainer.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fc4516019d8e85caf831c99b7fc835518375977935f5d1fc39861423a63760"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChunkedLinearCrossEntropy.forward (cognitive 21): _ChunkedLinearCrossEntropy.forward has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (10 pts), if/else 4 (8 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/llamafactory/v1/plugins/model_plugins/chunk_loss.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e823a69d517ee27fb7e5546220668ed9317e7c98a7be7550dcfc75cc56cfb73"}},{"ruleId":"D2","level":"warning","message":{"text":"LigerKernel._apply (cognitive 21): LigerKernel._apply has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/kernels/liger_kernel_ops.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fee2a504af18db9533642c8125600305ef0b42effd0ae1509005754ec5ebb6"}},{"ruleId":"D2","level":"warning","message":{"text":"switcher.document.addEventListener(\u0022DOMContentLoaded\u0022)::hideOtherLanguageToc (cognitive 21): switcher.document.addEventListener(\u0022DOMContentLoaded\u0022)::hideOtherLanguageToc has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 8, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/_static/js/switcher.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a0905a6f984ce9f761505223baf6a5325e1c34e4ab04d23f95af075355e084"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3VLPlugin.process_messages (cognitive 20): Qwen3VLPlugin.process_messages has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 5 (8 pts), ternaries 1 (3 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":2707}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9f228b37fdb9bada177a03834f977dddd6472416867114df66c5a237e61fa7"}},{"ruleId":"D2","level":"warning","message":{"text":"Template._encode (cognitive 20): Template._encode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (MossVLTemplate._encode) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e2ca1170fff6cbfdd4babdc537bbef4f46b289cf010b5dd7cbdfbb557e679e"}},{"ruleId":"D2","level":"warning","message":{"text":"MossVLTemplate._encode (cognitive 20): MossVLTemplate._encode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Template._encode) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"6814549edc0643a43d39709fed9989d99c9d243790f8b65a3ca11b3f2649b742"}},{"ruleId":"D2","level":"warning","message":{"text":"MegatronBridgeArguments.__post_init__ (cognitive 20): MegatronBridgeArguments.__post_init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/megatron_bridge_args.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"17174bbe20586eaf870d911bdf54e5570076753e59a1c6804c7350d49dea341f"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomDPOTrainer.__init__ (cognitive 20): CustomDPOTrainer.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (19 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/llamafactory/train/dpo/trainer.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0709a934b70bf9d8c5193e46ffdf4eac0ea7c04659b994863d009f64a55dcea4"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomPPOTrainer.__init__ (cognitive 20): CustomPPOTrainer.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 2, boolean chains 1, error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/ppo/trainer.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b6e533a2d3a3155d4e25084db9b3ebbd6b14d4c2302c696dc1aae8d277b01e"}},{"ruleId":"D2","level":"warning","message":{"text":"checkpoint._load_standard_training_states (cognitive 20): checkpoint._load_standard_training_states has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (5 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/llamafactory/v1/core/utils/checkpoint.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84d8c43858137c55238ea50a13d36472d3d0eaa9726dba67b933052f0ed48e8"}},{"ruleId":"D2","level":"warning","message":{"text":"fsdp2.get_transformer_layer_cls (cognitive 20): fsdp2.get_transformer_layer_cls has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b30bce537e342e06cbfabcda452f6baf4f7d9bc96c3c72d5300dfa93e8543d"}},{"ruleId":"D2","level":"warning","message":{"text":"MossVLPlugin.post_process_mossvl_inputs (cognitive 19): MossVLPlugin.post_process_mossvl_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcd0a767214a420a8ef5ed7517828071ce53e39cbe34939cff4c5a6e22383be"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen38ReasoningTemplate._encode (cognitive 19): Qwen38ReasoningTemplate._encode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceed9af47366b00fcbb5ecccb9d70725a738c69d536de8505519ab9e563ecd49"}},{"ruleId":"D2","level":"warning","message":{"text":"Xing4ToolUtils.tool_extractor (cognitive 19): Xing4ToolUtils.tool_extractor has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/tool_utils.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6a83163ec54d556c05be6e47eac9d0a9c38a29276bb7e84b197ab4955864c6"}},{"ruleId":"D2","level":"warning","message":{"text":"parser._check_extra_dependencies (cognitive 19): parser._check_extra_dependencies has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (19 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/parser.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e35fd486306a2c35b8c47a89ff71871531d6ac7da03ececf11d76898fb53d99"}},{"ruleId":"D2","level":"warning","message":{"text":"launcher.launch (cognitive 19): launcher.launch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/launcher.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4818513c5f25fa8a5fe7f85974a7c6696eddb99d927fed3c4f3aa50881fce1c2"}},{"ruleId":"D2","level":"warning","message":{"text":"launcher.launch (cognitive 19): launcher.launch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/launcher.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04fa5e450392bc8ee73cd1bdd43ab019007321b739120dc2ed041c91bd2dc8f"}},{"ruleId":"D2","level":"warning","message":{"text":"FlashLinearAttentionKernel._apply (cognitive 19): FlashLinearAttentionKernel._apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/kernels/ops/linear_attention/fla.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7dddca95e2405fd68ff61cf3ea6ef3889aefdcfad089755288513fd28fe1cc6"}},{"ruleId":"D2","level":"warning","message":{"text":"MossVLPlugin._get_media_order_from_ids (cognitive 18): MossVLPlugin._get_media_order_from_ids has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e231f17d4a23a8205d932c528c3ee4283fbda68d613ddaa9ab5398a384543ae6"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4Plugin._regularize_videos (cognitive 18): Gemma4Plugin._regularize_videos has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57a23f9836cb75d3898497a99bacef1c13c3292ba6284ec967d0fedd3a5aa76"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniCPMVPlugin._get_mm_inputs (cognitive 18): MiniCPMVPlugin._get_mm_inputs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (6 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d65b794fd8e113cbf580e72f2b8d09ec9f295e384a7dedda54c628aa8779cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"SupervisedDatasetProcessor._encode_data_example (cognitive 18): SupervisedDatasetProcessor._encode_data_example has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/supervised.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f34e5bf586ad86050946c8c54af2917aa2b481e706c65180ad20c6fa68f74b3"}},{"ruleId":"D2","level":"warning","message":{"text":"Template._convert_slots_to_jinja (cognitive 18): Template._convert_slots_to_jinja has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Template._convert_slots_to_ollama) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa3b2837535b76b908e03c8c4b773e25f23abf8f79d3273ee3d067e579e5ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"Template._convert_slots_to_ollama (cognitive 18): Template._convert_slots_to_ollama has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Template._convert_slots_to_jinja) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf3bbc2fb5b7779aa0bf836b545ef5792f5cdb9d073af355ff64642c2ab0620"}},{"ruleId":"D2","level":"warning","message":{"text":"dataset_export._example_to_record (cognitive 18): dataset_export._example_to_record has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/dataset_export.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c79431c7fb15c8c92e93101abc1dbb020456b7a70a299892ce049e635e010b"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomPPOTrainer.batched_forward_pass (cognitive 18): CustomPPOTrainer.batched_forward_pass has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/ppo/trainer.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec4dc86bcf13cdeadcfef51a4c7f17a71d6982385e3c08298265adfc1987136"}},{"ruleId":"D2","level":"warning","message":{"text":"batching.default_collate_fn (cognitive 18): batching.default_collate_fn has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (6 pts), boolean chains 2 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/utils/batching.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e52464f3a0eddea91dfb481899767e5cd88c0c9dae82f463447823b0cbf66e"}},{"ruleId":"D2","level":"warning","message":{"text":"data_utils.get_dataset_module (cognitive 17): data_utils.get_dataset_module has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/data_utils.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf5ef84077853e2f0e5469b778340e2d5ebb22c694a93e76e1f720961a883e2"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4Plugin.process_messages (cognitive 17): Gemma4Plugin.process_messages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (7 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7af95cb4032cebe79fe662cd9f16aa0be9725cb20c844d1c4640732345da27b"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoLlavaPlugin.process_messages (cognitive 17): VideoLlavaPlugin.process_messages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":3302}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b935ce23ecaa716c6006e7a0794217bad162e23e0f395b91b70a904c9d9096"}},{"ruleId":"D2","level":"warning","message":{"text":"LFM2ToolUtils.tool_extractor (cognitive 17): LFM2ToolUtils.tool_extractor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 2 (4 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/tool_utils.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b58f13e5529f31295a925ccee96fb6f8a55b407dfb5e229f333edc59492a2c"}},{"ruleId":"D2","level":"warning","message":{"text":"checkpointing.prepare_model_for_training (cognitive 17): checkpointing.prepare_model_for_training has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/checkpointing.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"15df6fc6206a71a970331e098a33fba39e0d73a4f7fd053628f4438b76ca6f07"}},{"ruleId":"D2","level":"warning","message":{"text":"patcher.patch_qwen3_5_forward_npu (cognitive 17): patcher.patch_qwen3_5_forward_npu has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 3 (5 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/patcher.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5095380778e0e8f459b8daed641f9801f8fd5cec83b98a18247017b6850157fc"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomKTOTrainer.log (cognitive 17): CustomKTOTrainer.log has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (8 pts), if/else 4 (6 pts), ternaries 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/kto/trainer.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6d9e244f19c3c7a62582e34cc458596db9072783b0327cb4fb82428128eb83"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseTrainer.__init__ (cognitive 17): BaseTrainer.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/base_trainer.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a207fea6cac739a0a45f546bcae2adc902bc09922e1b22cf239b0c0ec6c6bf"}},{"ruleId":"D2","level":"warning","message":{"text":"rendering._render_messages (cognitive 17): rendering._render_messages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/rendering/rendering.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cf23dde810a7dc210c2fb04d3960f965886757aac1a80d3b7b938dd3941028"}},{"ruleId":"D2","level":"warning","message":{"text":"collation.pad_and_truncate (cognitive 17): collation.pad_and_truncate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/utils/collation.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3469ebbe32dc422026405cbdde0df3f2f6c4782427c5fb2a0fa8d171517f7b4d"}},{"ruleId":"D2","level":"warning","message":{"text":"peft.merge_and_export_model (cognitive 17): peft.merge_and_export_model has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), error handling 1 (2 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/llamafactory/v1/plugins/model_plugins/peft.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5e86b3324107046d509bc84e95212f15a55fdc1523d1e795bd302ab223892a"}},{"ruleId":"D2","level":"warning","message":{"text":"FSDP2Engine._copy_weights (cognitive 17): FSDP2Engine._copy_weights has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba10d19fae37103f38fbdc6cd7a1cdc223c323a0f7f404425df8b2e62fe00ee0"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner._initialize (cognitive 17): Runner._initialize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/runner.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5236edd9d30a874652a56a40bf77d94d93f0901ace544b59c7eb20a9d90746"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiModalDataCollatorForSeq2Seq._compute_rope_position_ids (cognitive 16): MultiModalDataCollatorForSeq2Seq._compute_rope_position_ids has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 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/llamafactory/data/collator.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d22810422a9f95fa8a9b640f3c9b1ed7839d1d241b328685457a2b3818aecb"}},{"ruleId":"D2","level":"warning","message":{"text":"SFTDataCollatorWith4DAttentionMask.__call__ (cognitive 16): SFTDataCollatorWith4DAttentionMask.__call__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/collator.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fd6a67856cf36833147682763967c3db34a120082f49cbaf141d4eddea91c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ReasoningTemplate.encode_multiturn (cognitive 16): ReasoningTemplate.encode_multiturn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a2398cf7cb6a692a679296b52097a3afddb84bca6ce6e88b78dd30e8a0f225"}},{"ruleId":"D2","level":"warning","message":{"text":"longlora.llama_sdpa_attention_forward (cognitive 16): longlora.llama_sdpa_attention_forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/longlora.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b595823946e3545df3c35867eb36ab506c44e501df6f2cd61fca1eb7cd1792e8"}},{"ruleId":"D2","level":"warning","message":{"text":"PairwiseTrainer._save (cognitive 16): PairwiseTrainer._save has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (8 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/rm/trainer.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6b05744349d5e3ee922ab8d55863726a8207babe50ab7174c98d5661bc2193"}},{"ruleId":"D2","level":"warning","message":{"text":"converter.sharegpt_converter (cognitive 16): converter.sharegpt_converter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), error handling 2 (5 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/data_plugins/converter.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a764adace6f50c45cd8bdcfcf3675604f743478afce5c1f3a6e5eea0999a86"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/mm_plugin.py: FileTooLong \u2014 2716 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2216 over it, 5.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27ea5c08d0eaa9e82d28a1ff9f0ef6e1957d3bd3b18566bc15e1633c426b59c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: extras/constants.py: FileTooLong \u2014 2490 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1990 over it, 4.98\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/llamafactory/extras/constants.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75619c330bd253a1bb8a8942307ccd4c9507e3bb39ccd9a83fc873c1d7a7de5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/template.py: FileTooLong \u2014 1979 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1479 over it, 3.96\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/llamafactory/data/template.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6635541eae84dec84ba71c723d7a6934e551a547d90bd9eae3291c58e2a47f00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/tool_utils.py: FileTooLong \u2014 823 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 323 over it, 1.65\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/llamafactory/data/tool_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5b917dec4dcf516e943c3a3696372ffda72a9c120f3f15c9c54fb73b02fb46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/fsdp2.py: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4191cf3045a9076ad6d04800898efecf71a5db624a5da91175a6c6a745b369"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: train/trainer_utils.py: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 47 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/trainer_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4abcb027488701fbde33496bcf76c6f2eff1830c4ed785bd67a574d32e120d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hparams/parser.py: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 30 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/parser.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f9b62b1ca648ac255a673396b6892fff609d46415c21fd515ffb7feab2c92d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 17 shared lines): src/llamafactory/data/mm_plugin.py:1018-1074 | src/llamafactory/data/mm_plugin.py:2528-2552 | src/llamafactory/data/mm_plugin.py:2661-2704 | src/llamafactory/data/mm_plugin.py:2997-3023 | src/llamafactory/data/mm_plugin.py:3131-3175 \u2014 These 5 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe45f3ca9c6aad1bcb8f48e90d752476d04634bd153327049011aded1ca16aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 43 shared lines): src/llamafactory/model/model_utils/longlora.py:67-136 | src/llamafactory/model/model_utils/longlora.py:153-244 | src/llamafactory/model/model_utils/longlora.py:260-349 \u2014 These 3 members are variants of one another: a block of 43 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/longlora.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b357da6880c9ce99d991eac04d96d1deab1dbb1c1ca6f453749e565f0d3182a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (65 shared lines): src/llamafactory/train/hyper_parallel/workflow.py:181-288 | src/llamafactory/train/sft/workflow.py:49-160 \u2014 These two members are variants of one another: 65 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"74836f7fb374257fe725684f7e613a98aa88f3148de420e46cde54c21aad20d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): src/llamafactory/train/mca/workflow.py:170-212 | src/llamafactory/train/mca/workflow.py:224-278 \u2014 These two members are variants of one another: 36 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/mca/workflow.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a2f3f82a17dbf69825af7b4b46dccc17edd52f0ee74f46791c4a13a6110418"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): src/llamafactory/chat/sglang_engine.py:150-232 | src/llamafactory/chat/vllm_engine.py:121-218 \u2014 These two members are variants of one another: 29 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/llamafactory/chat/sglang_engine.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4527ec5e39690abd14e0dc3690a518f02bada032c909e3b642fce5a40322645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/llamafactory/data/processor/feedback.py:42-83 | src/llamafactory/data/processor/unsupervised.py:41-57 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/feedback.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afac15fc7b433efcf309aa3680ad3191c976b6e8f91384f025ab50f2490c820"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/llamafactory/data/processor/feedback.py:87-122 | src/llamafactory/data/processor/pairwise.py:73-100 | src/llamafactory/data/processor/supervised.py:111-135 | src/llamafactory/data/processor/supervised.py:151-252 | src/llamafactory/data/processor/unsupervised.py:61-85 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/feedback.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"1200497e88c2f1e763ebee2fd48e6e0272f3c0f573f1adcdcf78a87a8ca5be4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/llamafactory/data/template.py:139-176 | src/llamafactory/data/template.py:419-450 | src/llamafactory/data/template.py:465-490 | src/llamafactory/data/template.py:630-663 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b51218487bee4b7a717d3382fbdec6f287d9534e017000c5fe7a57a0c2ea32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): src/llamafactory/train/trainer_utils.py:205-285 | src/llamafactory/train/trainer_utils.py:293-369 \u2014 These two members are one piece of code written twice and then edited apart: 77 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/trainer_utils.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c48f3e8ecc816bedc9364fc8763d846abf9a011852cea39837e744d1cb0fb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): src/llamafactory/data/mm_plugin.py:1642-1722 | src/llamafactory/data/mm_plugin.py:1900-1971 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55fda7f91c5cca68b256bd8aa28ee9e93b789095558d4205efe97b3810791fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py:82-136 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py:210-252 \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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73cac9a0208022698d4ae58995c1f86e4aa1e927120a5e274cb5b5ce2736842"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): src/llamafactory/train/dpo/trainer.py:54-123 | src/llamafactory/train/kto/trainer.py:53-120 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/trainer.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cea3f15c327188d2280bc6ccff9363e2eaf133e40be9d2afa23fdf4eefcc34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/llamafactory/train/dpo/workflow.py:42-111 | src/llamafactory/train/kto/workflow.py:42-101 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"161c49d5607c8f35c67b9c0f2073e9d2d650ac295aff035c6a899eb6480e4212"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/llamafactory/data/mm_plugin.py:974-1008 | src/llamafactory/data/mm_plugin.py:2280-2325 \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/llamafactory/data/mm_plugin.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5644ce3be8840d53d5ef8552d407bc1f1a0e93e1f86cd60969f9498b0128a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/llamafactory/data/mm_plugin.py:835-872 | src/llamafactory/data/mm_plugin.py:2563-2603 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"b017ee2574e85f1e5e39a95b1164efccb275aad5ff19e913fb38159c9bd293c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:713-757 | src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py:306-349 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"653d403e71fb0a963b099586d316878958cab7ba1418300fb863cbc6f375e8fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): src/llamafactory/v1/plugins/data_plugins/converter.py:174-235 | src/llamafactory/v1/plugins/data_plugins/converter.py:240-297 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/data_plugins/converter.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed156f254e4eadba6fdae0ab8c4aca4b5d59638da05092aed9ab6b0e915b7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/llamafactory/train/megatron_bridge/workflow.py:295-327 | src/llamafactory/train/megatron_bridge/workflow.py:338-379 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/workflow.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7088ff17ad1c5daee6d84750ad5f064992e7f732ac4ab3202a4b5ea4da7ebd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/llamafactory/data/template.py:230-249 | src/llamafactory/data/template.py:291-310 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9529e9723637b1bc79554f16fd0fdbd0112d1024098f2d6d0a27ba29a288423a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/llamafactory/data/template.py:252-277 | src/llamafactory/data/template.py:493-520 \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/llamafactory/data/template.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a53c92bdf4d90428bb91340000d4f1acb8c8e76511ce9c4a0c07b1606986748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/llamafactory/train/trainer_utils.py:642-655 | src/llamafactory/train/trainer_utils.py:774-787 \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/llamafactory/train/trainer_utils.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64873edf9d69b5fb934e9850d6717e918770d719e4b9103e596d071577b1b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/llamafactory/data/tool_utils.py:623-645 | src/llamafactory/data/tool_utils.py:760-775 | src/llamafactory/data/tool_utils.py:972-989 \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/llamafactory/data/tool_utils.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99aebfab4b3f72099acc87d0aa1a6e9a06b865d8d1e22d3ac1416345fee08f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/npu_fused_moe.py:215-239 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/npu_fused_moe.py:330-348 \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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/npu_fused_moe.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce37f57b2f5e1a19c65df52c3f14e824a40590aa58ad69f7234e6dc031dbbeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py:310-331 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/npu_fused_moe.py:243-261 \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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e363c2221c0116d1b0c2d510e56b13121addafe2054a5736d9fedb0e9b5c778a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/llamafactory/v1/plugins/trainer_plugins/batching.py:61-89 | src/llamafactory/v1/plugins/trainer_plugins/batching.py:93-120 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/batching.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adeb12788f3e7b5e53475b87580b6ede6423e1dae07ca51bd637d9c4713e01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/llamafactory/data/tool_utils.py:808-821 | src/llamafactory/data/tool_utils.py:953-967 \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/llamafactory/data/tool_utils.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"884c5a79dbd73a2fb450be2207887e8db83a8ff408f4031facab9747b62bf9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py:322-349 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py:390-417 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8cb2d144bc36c4d7dd8856b57824519f6418c60f11164f32241bffa8a22862"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): scripts/bench_qwen.py:81-89 | src/llamafactory/data/collator.py:147-160 \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":"scripts/bench_qwen.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3128381601e73ab24de58991be4d084a7eaa65f45685f43c4e87ed11afb2496"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/npu_fused_moe.py:424-448 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/npu_swiglu.py:129-153 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/rms_norm/npu_rms_norm.py:189-217 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/npu_fused_moe.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0a4bff550397daa34efa4737f63dcf40f0af6da6726382efeb4f26a093c8f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/llamafactory/data/mm_plugin.py:313-329 | src/llamafactory/v1/core/rendering/format.py:130-146 \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/llamafactory/data/mm_plugin.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"6344b78e9f14ba5d20befacf86ffd6fe450ebbc63cee9ca413daeff4dcda9991"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/llamafactory/v1/plugins/model_plugins/kernels/ops/rms_norm/npu_rms_norm.py:45-62 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/rms_norm/npu_rms_norm.py:66-86 \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/llamafactory/v1/plugins/model_plugins/kernels/ops/rms_norm/npu_rms_norm.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96a9f9433695faf894e67971a4ead28ff5f82e6f590824bd9ed597d55a33659"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:444-463 | src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py:445-461 \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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"225d6d5f2017ac774f880abb1d16d60fadd52c3543fef57b253560b53e78cc6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/llamafactory/v1/trainers/dpo_trainer.py:431-446 | src/llamafactory/v1/trainers/rm_trainer.py:165-180 | src/llamafactory/v1/trainers/sft_trainer.py:60-72 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/trainers/dpo_trainer.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08e331bff1e3861bea65f1ff7f7036206f86174d160ef899cf3fa632b5e960a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/llamafactory/v1/trainers/dpo_trainer.py:69-85 | src/llamafactory/v1/trainers/rm_trainer.py:33-48 \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/llamafactory/v1/trainers/dpo_trainer.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9fe0ffa1170a9ee86f5efb7f448d3677dbee9abecb4604a996086f55b05153"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/llamafactory/data/processor/feedback.py:125-129 | src/llamafactory/data/processor/supervised.py:138-142 | src/llamafactory/data/processor/unsupervised.py:88-91 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/feedback.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87245ba6021b21cf3905612d3d4df54825b9cb2fc1242e43439a1805149f641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/llamafactory/chat/hf_engine.py:356-374 | src/llamafactory/chat/hf_engine.py:387-410 \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/llamafactory/chat/hf_engine.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a54b1dc65d31af538dd208c9ac90ded1d8704094ae4140e3b3749f83c444298"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/llamafactory/data/mm_plugin.py:2023-2032 | src/llamafactory/data/mm_plugin.py:2078-2090 \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/llamafactory/data/mm_plugin.py"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"0486a05f8f379c91cef9b8e91e9bd6f5dca8b533351767fda4c6eb5b9d602a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/llamafactory/train/dpo/trainer.py:151-158 | src/llamafactory/v1/trainers/dpo_trainer.py:337-342 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/trainer.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb0c07a816cd69f66a4ea89663acfc453250bedcc9adebed7ba68e809f8cf5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/llamafactory/v1/plugins/trainer_plugins/batching.py:232-242 | src/llamafactory/v1/plugins/trainer_plugins/batching.py:273-288 \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/llamafactory/v1/plugins/trainer_plugins/batching.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8611160e5e0937ce2805b04a00e8dd34af0688ff95f71953e54e9f4d2536280b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/llamafactory/chat/vllm_engine.py:260-265 | src/llamafactory/chat/sglang_engine.py:271-276 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/vllm_engine.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdddbb82f935b230c41471bc6f651f80227e8ba5466ce8c07b81d7b3c8919359"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/llamafactory/hparams/finetuning_args.py:662-664 | src/llamafactory/hparams/model_args.py:788-790 \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/llamafactory/hparams/finetuning_args.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddc2c874e4d52454538ef4e16fd13b9a9981a6d92764529629879da0077d10e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 3\u002B corresponding lines): src/llamafactory/train/dpo/trainer.py:127-129 | src/llamafactory/train/kto/trainer.py:124-126 | src/llamafactory/train/pt/trainer.py:73-75 | src/llamafactory/train/rm/trainer.py:69-71 | src/llamafactory/train/sft/trainer.py:132-134 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/trainer.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdcd31aae53f617d27a9de94fce210b411df0b3e1a7b4d9bbc1f60bd9ce5fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/llamafactory/v1/plugins/model_plugins/kernels/liger_kernel_ops.py:50-52 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/linear_attention/fla.py:46-48 \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/llamafactory/v1/plugins/model_plugins/kernels/liger_kernel_ops.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"194aeafe2f584c563f3b7a4c4de85e0119ec6baa4591107d7087f5eb58e00444"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): src/llamafactory/train/dpo/trainer.py:140-143 | src/llamafactory/train/kto/trainer.py:137-141 | src/llamafactory/train/pt/trainer.py:86-89 | src/llamafactory/train/rm/trainer.py:82-85 | src/llamafactory/train/sft/trainer.py:145-148 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/trainer.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf6c22cdc0623fa3561848f55f27e58adcc2ef4ce4ef5f062f67f6c24720e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201346 lines \u00D7 2): src/llamafactory/webui/components/train.py:131-176 | src/llamafactory/webui/components/train.py:206-237 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/webui/components/train.py:131\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/train.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"038f1cc296ffdc9da93d7279e93668bdff74c2f8caf1ae08d5e6b5c01c909784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): src/llamafactory/data/converter.py:173-216 | src/llamafactory/data/converter.py:294-337 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/converter.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"be938821133df86cc2f265d60635e14c5d04175e308d67dfe16414c2ef39ce81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201339 lines \u00D7 2): src/llamafactory/train/hyper_parallel/workflow.py:134-170 | src/llamafactory/train/pt/workflow.py:63-101 \u2014 \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 and \u0060src/llamafactory/train/pt/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9847fb22606bb935f227680129036d33e8674b78b929f187b97d7c8dd013e366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201334 lines \u00D7 2): src/llamafactory/train/trainer_utils.py:249-282 | src/llamafactory/train/trainer_utils.py:336-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/train/trainer_utils.py:249\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/trainer_utils.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"02466cab76b964610cbb7edba8a6dc00d17b8f50262dda6f41d1f980460175b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/llamafactory/train/dpo/trainer.py:87-118 | src/llamafactory/train/kto/trainer.py:89-120 \u2014 \u0060src/llamafactory/train/dpo/trainer.py\u0060 and \u0060src/llamafactory/train/kto/trainer.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/llamafactory/train/dpo/trainer.py:123\u0060 calls \u0060RunningMoments\u0060 and \u0060src/llamafactory/train/kto/trainer.py:122\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/trainer.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd86d8aeaa9488eee61573bde0a2091bbd674ff28c3f49c83d14adfb2cf89be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201333 lines \u00D7 2): src/llamafactory/train/trainer_utils.py:210-239 | src/llamafactory/train/trainer_utils.py:298-330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/trainer_utils.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b577d03a08c08030d6cbee95ff137c17ba5446a91bb7e522824adf7089127d07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/llamafactory/v1/plugins/data_plugins/converter.py:199-224 | src/llamafactory/v1/plugins/data_plugins/converter.py:257-282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/data_plugins/converter.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fa837a8ed8d3f440967e8d13a9eaa57b9eab93264035c28caec59c3fd3622f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/llamafactory/train/hyper_parallel/workflow.py:237-261 | src/llamafactory/train/sft/workflow.py:110-134 \u2014 \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 and \u0060src/llamafactory/train/sft/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 101 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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/llamafactory/train/hyper_parallel/workflow.py:237\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f93fdc8c99d2184f47313c71a12d178e12ba3d3f8b33ef9b43b27384715bb90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/llamafactory/train/hyper_parallel/workflow.py:264-288 | src/llamafactory/train/sft/workflow.py:136-160 \u2014 \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 and \u0060src/llamafactory/train/sft/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 101 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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/llamafactory/train/hyper_parallel/workflow.py:264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9d954e4981a9a6cb68639a1bc8e1b407d7a76d87662b685e5a3d15d5849055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/llamafactory/train/megatron_bridge/config_builder.py:589-613 | src/llamafactory/train/megatron_bridge/config_builder.py:650-674 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/train/megatron_bridge/config_builder.py:589\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/config_builder.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"6616cca6f289e4359dc3adca56acfbbd077e6434240186f95d9d51b4965a924a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:1701-1722 | src/llamafactory/data/mm_plugin.py:1952-1971 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"898bb0f49db5dd408541b4a9c26e03787c2632d352d1f1e22efb9181dfe70bf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): src/llamafactory/webui/components/train.py:152-173 | src/llamafactory/webui/components/train.py:419-437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/webui/components/train.py:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/train.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e7265b4104a3206b8b896abc80f0d5661437231dc3b616a56f8f314d6657b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:1033-1053 | src/llamafactory/data/mm_plugin.py:2674-2694 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/mm_plugin.py:1033\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e65e5c664e9ffeb0703cc38337bbddb46a406c6b8094913758ae6201ffcf649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): src/llamafactory/data/template.py:144-163 | src/llamafactory/data/template.py:419-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/template.py:144\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c312accd09fd05eaf5de13e5f220a42485ca66c44260adf6c71572bd8a1422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/llamafactory/train/dpo/workflow.py:92-111 | src/llamafactory/train/kto/workflow.py:82-101 \u2014 \u0060src/llamafactory/train/dpo/workflow.py\u0060 and \u0060src/llamafactory/train/kto/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2272955f611e46c658edd91595b0277be5decbbe01f29c2e55e8a1d38411b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:563-582 | src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:591-606 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:563\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"df23ec953b70dd91d27f0fec7729b4e84ddf714e3848b0ebabc23d8b5fecf605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:979-995 | src/llamafactory/data/mm_plugin.py:2289-2307 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"5852cc25faaa190cd12a1d635b6531605e4f04cb645662cc042305f6c015db24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:1478-1496 | src/llamafactory/data/mm_plugin.py:1517-1535 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20117453402ee9a8a6033d4e412fd7b5142b42541294a58e4c78620c377a054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:1667-1685 | src/llamafactory/data/mm_plugin.py:1924-1942 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"1725d07a69d489ba2725158605e56e21469515a9f147cda90613b6a5171da0af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py:178-195 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py:218-235 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02fe753ec079dd4200e7854ea726cad773eeff4f50e5ba1cc009de10cc0c709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): src/llamafactory/train/hyper_parallel/workflow.py:124-139 | src/llamafactory/train/kto/workflow.py:65-81 | src/llamafactory/train/pt/workflow.py:52-68 \u2014 \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 and \u0060src/llamafactory/train/pt/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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/llamafactory/train/hyper_parallel/workflow.py:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb3e0e68c70d17c5aa06dcbe67d627ea97142e384c7088d8c7a81f9c2a734e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:2569-2583 | src/llamafactory/data/mm_plugin.py:2723-2739 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/llamafactory/data/mm_plugin.py:2720\u0060 calls \u0060getattr\u0060 and \u0060src/llamafactory/data/mm_plugin.py:2567\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":2569}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85b50597cdaee512529a974a81df602da91b9a453ed6355b052a30bbbcab471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/llamafactory/extras/logging.py:102-118 | src/llamafactory/v1/utils/logging.py:65-81 \u2014 before extracting anything, compare \u0060src/llamafactory/extras/logging.py\u0060 and \u0060src/llamafactory/v1/utils/logging.py\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a 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/llamafactory/extras/logging.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d81143ccce2737a17a57d7aae9329acadd130179fbbe948d04c6bc3346434b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/llamafactory/train/hyper_parallel/workflow.py:102-118 | src/llamafactory/train/hyper_parallel/workflow.py:181-197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"15371b79312de548f898adca6db49d64888711e04483167579f940b14423a2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/llamafactory/train/hyper_parallel/workflow.py:212-226 | src/llamafactory/train/sft/workflow.py:82-98 \u2014 \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 and \u0060src/llamafactory/train/sft/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 101 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d22dff9d48ebafb6543b492006303653f090b79bfc8c363c0fc265556bbfaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/llamafactory/train/pt/trainer.py:43-59 | src/llamafactory/train/sft/trainer.py:59-74 \u2014 \u0060src/llamafactory/train/pt/trainer.py\u0060 and \u0060src/llamafactory/train/sft/trainer.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 17 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/pt/trainer.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2724161cce2353519fa1a66b5cffd8992fd58f3c4e2b94bd080a2951321be1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/llamafactory/data/mm_plugin.py:1023-1038 | src/llamafactory/data/mm_plugin.py:2531-2546 | src/llamafactory/data/mm_plugin.py:2664-2679 | src/llamafactory/data/mm_plugin.py:3000-3015 | src/llamafactory/data/mm_plugin.py:3137-3152 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b162ebd6c44f11c6247118b8df9efd8ea1c30635f84e8e5a908e71b6796181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/llamafactory/chat/sglang_engine.py:66-81 | src/llamafactory/chat/vllm_engine.py:55-70 \u2014 before extracting anything, compare \u0060src/llamafactory/chat/sglang_engine.py\u0060 and \u0060src/llamafactory/chat/vllm_engine.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/sglang_engine.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d81d64adb75da21672c0de22fd58f838cb3c3e591b68ac02a23890ff59b50b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): src/llamafactory/data/template.py:254-266 | src/llamafactory/data/template.py:494-509 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/template.py:254\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3db8df691c76d36533efea9c468fba7cdbdfe083249ffd13927427c216923c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/llamafactory/extras/misc.py:94-109 | src/llamafactory/v1/utils/packages.py:54-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/llamafactory/extras/misc.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f39c8990568648916dbdf0ddc9ff1380a867b66ee736305be4cbb3e2e6e0d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/llamafactory/model/loader.py:240-255 | src/llamafactory/train/hyper_parallel/loader.py:148-162 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/loader.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"83124d855cf0109e85d9384bc7d08059f0454bb5a825f4c6bc83a08beaf9bff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/llamafactory/train/dpo/trainer.py:64-79 | src/llamafactory/train/kto/trainer.py:62-77 \u2014 \u0060src/llamafactory/train/dpo/trainer.py\u0060 and \u0060src/llamafactory/train/kto/trainer.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/trainer.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"80903f54621cdc765f06ff19e9063ff6fa2577d42fb61a518a7424240254b3ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/llamafactory/v1/core/utils/collation.py:124-139 | src/llamafactory/v1/core/utils/collation.py:196-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a 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/llamafactory/v1/core/utils/collation.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46ac5db50f3f0c31e22bca6a760656a4e9300f1921d67642e7f30c27a18e190"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/llamafactory/model/model_utils/longlora.py:67-89 | src/llamafactory/model/model_utils/longlora.py:155-177 | src/llamafactory/model/model_utils/longlora.py:275-297 \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/llamafactory/model/model_utils/longlora.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b11f6a36cddba210d00b6e5471c61764b7b88a38d71df79beefc1ad345edcd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/llamafactory/train/dpo/workflow.py:75-89 | src/llamafactory/train/hyper_parallel/workflow.py:242-256 | src/llamafactory/train/sft/workflow.py:115-129 \u2014 \u0060src/llamafactory/train/dpo/workflow.py\u0060 and \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/train/dpo/workflow.py:75\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a2b0bf9087a91325aad2f926c57e03fd808533174074347ce989a599064f4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/llamafactory/webui/components/chatbot.py:126-140 | src/llamafactory/webui/components/train.py:154-168 | src/llamafactory/webui/components/train.py:420-434 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/webui/components/chatbot.py:126\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/llamafactory/webui/components/train.py:153\u0060 calls \u0060update\u0060 and \u0060src/llamafactory/webui/components/chatbot.py:125\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/chatbot.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19a1823f9032bbaf78439e52584ef67b46e89759befe8931091313de63b13c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/llamafactory/webui/components/train.py:303-317 | src/llamafactory/webui/components/train.py:323-337 | src/llamafactory/webui/components/train.py:343-357 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/llamafactory/webui/components/train.py:338\u0060 calls \u0060Dropdown\u0060 and \u0060src/llamafactory/webui/components/train.py:318\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/train.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"3436d6bf028f231492f87bcbd9621c2d71607f873e1cd67a3017aea338e878f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): src/llamafactory/launcher.py:61-83 | src/llamafactory/v1/launcher.py:49-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/launcher.py:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/launcher.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9731f72f48077c94bfd83e182c7cd1635baaa8af66367a5772840545212e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201315 lines \u00D7 2): src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py:310-316 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/npu_fused_moe.py:265-279 \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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"628e53dd61c83093764d92839e5f897bd274b1d2216aa236b0d4bb827c589fea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:739-753 | src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py:330-342 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a 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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"441155da26c9223a65c9cf569e76760007f22ad381e662aa71e2d7635de0196a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:295-306 | src/llamafactory/data/mm_plugin.py:990-1003 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/mm_plugin.py:990\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/llamafactory/data/mm_plugin.py:989\u0060 calls \u0060get\u0060 and \u0060src/llamafactory/data/mm_plugin.py:294\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddaaeebeee252d5d9e6210df1e11fcaab9f3a29d7d50a1a75fc139641e40e4b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/llamafactory/train/mca/workflow.py:185-198 | src/llamafactory/train/mca/workflow.py:252-265 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/train/mca/workflow.py:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/mca/workflow.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40f2f934052baaed53768a8069e9c976270308b430d471ef9d89fa719e5dd29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/llamafactory/v1/core/rendering/format.py:50-63 | src/llamafactory/v1/core/rendering/format.py:76-89 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/v1/core/rendering/format.py:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/core/rendering/format.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9907ca2421b657990c074336fb6f305a51e44d402af1db19df061cb0872abc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): src/llamafactory/train/dpo/workflow.py:86-98 | src/llamafactory/train/kto/workflow.py:78-88 | src/llamafactory/train/mca/workflow.py:346-358 \u2014 \u0060src/llamafactory/train/dpo/workflow.py\u0060 and \u0060src/llamafactory/train/kto/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/train/dpo/workflow.py:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9487001e5bdb26cf89166de4ab5bfc371da1e7e9b75705888980a30a2ae27a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/llamafactory/chat/sglang_engine.py:180-192 | src/llamafactory/chat/vllm_engine.py:153-165 \u2014 before extracting anything, compare \u0060src/llamafactory/chat/sglang_engine.py\u0060 and \u0060src/llamafactory/chat/vllm_engine.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/sglang_engine.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5f4091d22ab4395210536908936c1bb282db64f6d31f290242e743c7a7f4cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:402-414 | src/llamafactory/data/mm_plugin.py:3160-3172 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73e36be38ce4d3a4804cd130b4134d1834e985edba3dafe416cee369ace04c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:2578-2590 | src/llamafactory/data/mm_plugin.py:3210-3222 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":2578}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05dc62372e0309c72fc9ae874ff1564901551fe56607ed2ba91d1fc8f878747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): src/llamafactory/data/tool_utils.py:760-769 | src/llamafactory/data/tool_utils.py:972-984 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/tool_utils.py"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f4d98ea10203d43ee586e5e08cb8c815080c3eabbee5f8ead434513ebd6cc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/llamafactory/model/adapter.py:94-105 | src/llamafactory/v1/plugins/model_plugins/peft.py:243-255 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/adapter.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"668facb31f0b131a2857abbee4760fafb194976bd3063503a2594dca9945fc04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/llamafactory/v1/trainers/dpo_trainer.py:72-84 | src/llamafactory/v1/trainers/rm_trainer.py:34-46 \u2014 before extracting anything, compare \u0060src/llamafactory/v1/trainers/dpo_trainer.py\u0060 and \u0060src/llamafactory/v1/trainers/rm_trainer.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/v1/trainers/dpo_trainer.py:72\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/trainers/dpo_trainer.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fa8fd7c12355b90ada36c91a66d13ce3048c909a923153c12f177faabc1a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201313 lines \u00D7 5): src/llamafactory/webui/components/train.py:73-74 | src/llamafactory/webui/components/train.py:92-93 | src/llamafactory/webui/components/train.py:194-195 | src/llamafactory/webui/components/train.py:286-298 | src/llamafactory/webui/components/train.py:306-318 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/webui/components/train.py:286\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/llamafactory/webui/components/train.py:89\u0060 calls \u0060Accordion\u0060 and \u0060src/llamafactory/webui/components/train.py:69\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/train.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"16604b1ea3f33b5cc676f38e63efc3113687c7b6a61f119ef656d177c1092f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/llamafactory/webui/runner.py:190-202 | src/llamafactory/webui/runner.py:339-351 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/webui/runner.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dac49872b63fec6309253fdc76fe5bb43cd9ecd26f7fd1327bb3779750884a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): src/llamafactory/train/hyper_parallel/workflow.py:135-146 | src/llamafactory/train/mca/workflow.py:202-212 | src/llamafactory/train/mca/workflow.py:268-278 | src/llamafactory/train/pt/workflow.py:64-75 \u2014 \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 and \u0060src/llamafactory/train/pt/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fadb9142cadcec6fce640c5244c2dd2e314d0ce075586186780cae1bafd8755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201312 lines \u00D7 3): src/llamafactory/chat/hf_engine.py:122-125 | src/llamafactory/chat/sglang_engine.py:157-168 | src/llamafactory/chat/vllm_engine.py:129-140 \u2014 before extracting anything, compare \u0060src/llamafactory/chat/sglang_engine.py\u0060 and \u0060src/llamafactory/chat/vllm_engine.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/llamafactory/chat/sglang_engine.py:168\u0060 calls \u0060pop\u0060 and \u0060src/llamafactory/chat/hf_engine.py:125\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/hf_engine.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fb5ec4a06af47ba61cb9d23fc9100990eaa475366c42e89075baf39bfd0dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/llamafactory/model/model_utils/longlora.py:120-130 | src/llamafactory/model/model_utils/longlora.py:226-236 | src/llamafactory/model/model_utils/longlora.py:336-346 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/model/model_utils/longlora.py:120\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/longlora.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c740b12108f97e5bd3dc3995538463f71d8c53499050500d0cc1ba3fbf9690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:1621-1631 | src/llamafactory/data/mm_plugin.py:1827-1837 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/mm_plugin.py:1621\u0060 it begins part-way through the construct above it, so those exact lines 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c3e278a5c50dab10220391876f9a071d8b8c84f45fb77b0b5449929f56ca4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/llamafactory/data/template.py:166-176 | src/llamafactory/data/template.py:653-663 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b71d65b33bd5ec72a5018f0e07d6378687bceac0cc41eb789d21c59e1c29e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/llamafactory/train/mca/workflow.py:170-180 | src/llamafactory/train/mca/workflow.py:227-237 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/train/mca/workflow.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefc0c5ca22d90134fbdb1198e16d1049bef5081ed12177ce9249c29367a11be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src/llamafactory/v1/plugins/trainer_plugins/batching.py:62-70 | src/llamafactory/v1/plugins/trainer_plugins/batching.py:93-103 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/v1/plugins/trainer_plugins/batching.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa6c3a02eca70a0a774e5acd60dcc0c9b323d5dfca3b9665a1c4ebdd382a615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/llamafactory/webui/components/train.py:81-91 | src/llamafactory/webui/components/train.py:228-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/webui/components/train.py:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/train.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d62fa8b091fc9151f5b85f953f6809ef2ffc6009d9527a6edb7ac978c0d269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 6): src/llamafactory/data/mm_plugin.py:1021-1029 | src/llamafactory/data/mm_plugin.py:2530-2537 | src/llamafactory/data/mm_plugin.py:2663-2670 | src/llamafactory/data/mm_plugin.py:2999-3006 | src/llamafactory/data/mm_plugin.py:3134-3143 | src/llamafactory/data/mm_plugin.py:3370-3377 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/mm_plugin.py:3134\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/llamafactory/data/mm_plugin.py:2528\u0060 calls \u0060getattr\u0060 and \u0060src/llamafactory/data/mm_plugin.py:3368\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"09eeb3b1906bc3133595127766335c8e3d8880348321c0be10e20364df2eddf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/llamafactory/train/dpo/workflow.py:82-91 | src/llamafactory/train/hyper_parallel/workflow.py:249-258 | src/llamafactory/train/mca/workflow.py:342-351 | src/llamafactory/train/sft/workflow.py:122-131 \u2014 \u0060src/llamafactory/train/dpo/workflow.py\u0060 and \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9a47ffdfdff8c0d8de77deb3627f8aac3a0d2f245701b5ccb33ed923b87eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src/llamafactory/train/dpo/workflow.py:93-102 | src/llamafactory/train/hyper_parallel/workflow.py:141-149 | src/llamafactory/train/kto/workflow.py:83-92 | src/llamafactory/train/pt/workflow.py:70-79 \u2014 \u0060src/llamafactory/train/dpo/workflow.py\u0060 and \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4d29a0be142275f32311232443e380c71b870531b6de1ba7cadd3dac9a87e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/llamafactory/data/processor/supervised.py:114-123 | src/llamafactory/data/processor/supervised.py:157-166 | src/llamafactory/data/processor/unsupervised.py:64-73 \u2014 before extracting anything, compare \u0060src/llamafactory/data/processor/supervised.py\u0060 and \u0060src/llamafactory/data/processor/unsupervised.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/processor/supervised.py:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/supervised.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"207e32280cf14e7b6b9e234c5070de1b8f1116b2f1aec716f6e067bc20088d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 3): src/llamafactory/model/model_utils/moe.py:234-243 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py:311-316 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/npu_fused_moe.py:274-279 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/moe.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a285737f7cee7ad24f036f7c851898ee1033c74e8f21c6c59e30d320ff4e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201310 lines \u00D7 6): src/llamafactory/webui/components/chatbot.py:85-86 | src/llamafactory/webui/components/eval.py:54-56 | src/llamafactory/webui/components/train.py:71-73 | src/llamafactory/webui/components/train.py:82-91 | src/llamafactory/webui/components/train.py:184-193 | src/llamafactory/webui/components/train.py:229-238 \u2014 there are 6 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/webui/components/train.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/llamafactory/webui/components/train.py:71\u0060 calls \u0060Row\u0060 and \u0060src/llamafactory/webui/components/train.py:82\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/chatbot.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c933cfebb3306bb9f264cdfe9e73479db77502087ca4ef13c09993bbc140b65b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/llamafactory/api/chat.py:137-146 | src/llamafactory/api/chat.py:150-159 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/api/chat.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8122a3d273ece0b23bc40997884318bc6157e4a8c8f58115ca7722fa791f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/llamafactory/data/tool_utils.py:465-474 | src/llamafactory/data/tool_utils.py:670-679 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/tool_utils.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9fb0600c188637b5d5172e8763533c8495f9e63d12a1f2efe8ce00e14b4bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/llamafactory/data/tool_utils.py:808-817 | src/llamafactory/data/tool_utils.py:953-962 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/tool_utils.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"b875bfb9bbd4d18ef22577951fd13a07f5e866d3d42db0ecc5f7b98c44b768f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src/llamafactory/v1/trainers/dpo_trainer.py:272-281 | src/llamafactory/v1/trainers/rm_trainer.py:121-128 \u2014 before extracting anything, compare \u0060src/llamafactory/v1/trainers/dpo_trainer.py\u0060 and \u0060src/llamafactory/v1/trainers/rm_trainer.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/trainers/dpo_trainer.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e2ec22a9670495d5d3f44cd7f74ea73cec718fd2263c0b2a5a95b10f78cda0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/llamafactory/data/mm_plugin.py:1706-1714 | src/llamafactory/data/mm_plugin.py:1941-1949 | src/llamafactory/data/mm_plugin.py:1956-1964 \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/llamafactory/data/mm_plugin.py"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e03a899475c17e488284adbb4a054ba2bbfa906aa33dc18a0ab3870794ea5ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/llamafactory/train/dpo/trainer.py:101-109 | src/llamafactory/train/kto/trainer.py:103-111 | src/llamafactory/train/sft/trainer.py:98-106 \u2014 \u0060src/llamafactory/train/dpo/trainer.py\u0060 and \u0060src/llamafactory/train/kto/trainer.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/trainer.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06b94fe11024d5b6c92f76cb41e8e814b4b878253922e32db11d1ed4cf1283b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/llamafactory/data/converter.py:147-155 | src/llamafactory/data/converter.py:241-249 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/converter.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3c42c8adbee45504ff464f1b36413a646edb9b8f29fbd0ee99cf152343151a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:837-845 | src/llamafactory/data/mm_plugin.py:3037-3044 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cd545593f0ab354f3e425a1c47d5c1f2c2f61eec2038b892478e929dc4984a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/llamafactory/model/patcher.py:115-125 | src/llamafactory/model/patcher.py:127-135 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/model/patcher.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e444f67bc0e72b1c956811ae849903cfb6f2e5fbfad98cacf2dac1f75472c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/llamafactory/train/rm/workflow.py:74-82 | src/llamafactory/train/sft/workflow.py:132-140 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/llamafactory/train/rm/workflow.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"760ada6c2af0d631012e4f508bc58518661b7f0ec0462480c07d51c79a57237f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/llamafactory/v1/plugins/data_plugins/converter.py:227-235 | src/llamafactory/v1/plugins/data_plugins/converter.py:289-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/data_plugins/converter.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d890c06ae2a6e2fe5ec9d455c10247b9ac98537a23897704ad6229ef2d4c051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py:166-174 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py:275-281 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f10476a64f83c28acd2ec39ef48e8cf1b102aeea54e6cfa218c8e79e2ad051e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:142-150 | src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:171-179 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0050a4a790c17acff31481055f0916dd001096ded9a43a8ab89fd197f8eca7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 7): src/llamafactory/data/mm_plugin.py:1031-1038 | src/llamafactory/data/mm_plugin.py:1211-1217 | src/llamafactory/data/mm_plugin.py:1593-1599 | src/llamafactory/data/mm_plugin.py:2539-2546 | src/llamafactory/data/mm_plugin.py:2672-2679 | src/llamafactory/data/mm_plugin.py:3008-3015 | src/llamafactory/data/mm_plugin.py:3145-3152 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/mm_plugin.py:1211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/llamafactory/data/mm_plugin.py:1029\u0060 calls \u0060update\u0060, \u0060image_processor\u0060 and \u0060src/llamafactory/data/mm_plugin.py:1209\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"de24bf6d5e31f4dedd7f9dacd092432ca9f78810e05bdd6ef81210ecf5d4aa4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/llamafactory/data/processor/feedback.py:101-108 | src/llamafactory/data/processor/pairwise.py:85-92 | src/llamafactory/data/processor/supervised.py:123-130 | src/llamafactory/data/processor/unsupervised.py:73-80 \u2014 before extracting anything, compare \u0060src/llamafactory/data/processor/supervised.py\u0060 and \u0060src/llamafactory/data/processor/unsupervised.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/processor/feedback.py:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/feedback.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac2f67a4b8c5aebc53d6f25d3f24445ef1f90f9427bc2e67ccaca8e1afc0af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/llamafactory/data/converter.py:410-417 | src/llamafactory/data/loader.py:246-253 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a168a6c1095b677f448363c0856ba2ce23181d27fe071227f6eae1784c658d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:945-951 | src/llamafactory/data/mm_plugin.py:1085-1092 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dd03502ca436fd9d8a375ad986c4994c936e064d9bb7f6b3fa3ba771333d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:2563-2570 | src/llamafactory/data/mm_plugin.py:3034-3041 \u2014 both copies are in the same file, so extract the block 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/llamafactory/data/mm_plugin.py:2571\u0060 calls \u0060_get_mm_token_metadata\u0060 and \u0060src/llamafactory/data/mm_plugin.py:3042\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/mm_plugin.py"},"region":{"startLine":2563}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9e1f1ac2990c4d5d6def0e6152ded3ee1f41862b1ac02b22dfc9fa3e7a1423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/llamafactory/data/tool_utils.py:540-547 | src/llamafactory/data/tool_utils.py:743-750 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/tool_utils.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"62962747501e0dabcbfe3d3f16fd0c8334873e20bb7ec228b2d845f6266b31c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/llamafactory/train/dpo/trainer.py:337-344 | src/llamafactory/train/kto/trainer.py:289-296 \u2014 \u0060src/llamafactory/train/dpo/trainer.py\u0060 and \u0060src/llamafactory/train/kto/trainer.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/trainer.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"43be1d2d1f0b59a3d54baba04484857bc5ce29761f07d6e68ce85799b0e08fe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/llamafactory/train/trainer_utils.py:664-671 | src/llamafactory/train/trainer_utils.py:797-804 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a 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/llamafactory/train/trainer_utils.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bc3160fc9e2f26c356ed3b0a24aa68c5efcd30b630c5432a2a0893d5f955a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/llamafactory/v1/trainers/dpo_trainer.py:120-127 | src/llamafactory/v1/trainers/rm_trainer.py:87-94 \u2014 before extracting anything, compare \u0060src/llamafactory/v1/trainers/dpo_trainer.py\u0060 and \u0060src/llamafactory/v1/trainers/rm_trainer.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/trainers/dpo_trainer.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"98245a35df4eb18d09f3a1e3b29edec6a520ebc39282d5fc37f7b0212e813c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/llamafactory/data/mm_plugin.py:386-392 | src/llamafactory/data/mm_plugin.py:1212-1218 | src/llamafactory/data/mm_plugin.py:1594-1600 \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/llamafactory/data/mm_plugin.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a604db7d5127492b338cffbab8ddadb038b9d928b09d5ad7ab0e00a68b263b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/llamafactory/train/hyper_parallel/workflow.py:253-261 | src/llamafactory/train/rm/workflow.py:70-76 | src/llamafactory/train/sft/workflow.py:126-134 \u2014 \u0060src/llamafactory/train/hyper_parallel/workflow.py\u0060 and \u0060src/llamafactory/train/sft/workflow.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 101 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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/llamafactory/train/hyper_parallel/workflow.py:253\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/workflow.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"818205fab0561fe1eae692ef24b8b558eeb7c222df68462d41d9b8f7ff58797d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/llamafactory/data/mm_plugin.py:283-289 | src/llamafactory/data/mm_plugin.py:2281-2289 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/data/mm_plugin.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc8c0e46af6551569d3ab817f4682a395b8561850c41e1a84b733b72a6ff08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/llamafactory/data/processor/feedback.py:59-65 | src/llamafactory/data/processor/pairwise.py:50-56 \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/llamafactory/data/processor/feedback.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe45929c593138e5fd2caead6dc331d4580c9357519a42d38f71f6687004ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/llamafactory/data/processor/feedback.py:66-72 | src/llamafactory/data/processor/unsupervised.py:51-56 \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/llamafactory/data/processor/feedback.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8eeed24be61b6e5ad1a65a709eef66178e44c1eee3da5654ef2d04ba885e689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/llamafactory/model/model_utils/misc.py:43-49 | src/llamafactory/v1/plugins/model_plugins/peft.py:90-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060model\u0060 to \u0060\u0022PreTrainedModel\u0022\u0060 in one and \u0060HFModel\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/llamafactory/model/model_utils/misc.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf6c9821bf8a5f1f34d154cdfa9626c8abed4d4f58ff84d1a0d8608542df68f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/llamafactory/train/trainer_utils.py:642-652 | src/llamafactory/train/trainer_utils.py:774-784 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/trainer_utils.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f639c4f1d0154ad5930868ff63de7c787ec411d51a04517db5066dbc360714d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/llamafactory/data/processor/feedback.py:100-105 | src/llamafactory/data/processor/pairwise.py:84-89 | src/llamafactory/data/processor/supervised.py:122-127 | src/llamafactory/data/processor/supervised.py:165-170 | src/llamafactory/data/processor/unsupervised.py:72-77 \u2014 before extracting anything, compare \u0060src/llamafactory/data/processor/supervised.py\u0060 and \u0060src/llamafactory/data/processor/unsupervised.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/processor/feedback.py:100\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/feedback.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf31382d54df1eedcb5e82a36ff6895a5e736a5d427a4a93b0c08f538f19f8e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/llamafactory/data/converter.py:104-109 | src/llamafactory/data/converter.py:185-190 | src/llamafactory/data/converter.py:306-311 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/converter.py:104\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e220ce18657296325b3bad6eaa821bec468a6583e2d0ea760ab9e6f9182ba13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/llamafactory/data/processor/pairwise.py:93-100 | src/llamafactory/data/processor/supervised.py:128-135 | src/llamafactory/data/processor/unsupervised.py:78-85 \u2014 before extracting anything, compare \u0060src/llamafactory/data/processor/supervised.py\u0060 and \u0060src/llamafactory/data/processor/unsupervised.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/llamafactory/data/processor/supervised.py:138\u0060 calls \u0060list\u0060, \u0060filter\u0060 and \u0060src/llamafactory/data/processor/unsupervised.py:88\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/pairwise.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bbc5261daa0ff9e9eda881e93ee45c4843bac270a727068735dd53647e2a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): src/llamafactory/chat/hf_engine.py:130-135 | src/llamafactory/chat/sglang_engine.py:170-173 | src/llamafactory/chat/vllm_engine.py:146-151 \u2014 before extracting anything, compare \u0060src/llamafactory/chat/sglang_engine.py\u0060 and \u0060src/llamafactory/chat/vllm_engine.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/llamafactory/chat/sglang_engine.py:169\u0060 calls \u0060pop\u0060 and \u0060src/llamafactory/chat/hf_engine.py:129\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/hf_engine.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54ee99a9d5dfd4c30fa95536c74e48f541de39d3e4344af3785c51025d5b914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): src/llamafactory/model/model_utils/longlora.py:100-105 | src/llamafactory/model/model_utils/longlora.py:206-209 | src/llamafactory/model/model_utils/longlora.py:308-313 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/model/model_utils/longlora.py:100\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/longlora.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d448ebcf5e8523378d3bad6d86702f0da0efc7d8b938aa6863b732fa1c0ece2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/llamafactory/webui/chatter.py:131-136 | src/llamafactory/webui/runner.py:145-150 \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/llamafactory/webui/chatter.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8450f909d08902e05c96c2a3591297bbc49af81798bcf5c2b2b9cda8a3e9db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/llamafactory/data/template.py:163-167 | src/llamafactory/data/template.py:435-439 | src/llamafactory/data/template.py:479-483 | src/llamafactory/data/template.py:650-654 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/llamafactory/data/template.py:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/template.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"599af3713b6835cf97cbd2e4fed1dd483ea8493e01395b7247d034b96b1fc153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/llamafactory/model/model_utils/longlora.py:92-96 | src/llamafactory/model/model_utils/longlora.py:201-205 | src/llamafactory/model/model_utils/longlora.py:300-304 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/llamafactory/model/model_utils/longlora.py:97\u0060 calls \u0060transpose\u0060 and \u0060src/llamafactory/model/model_utils/longlora.py:206\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/longlora.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b360754fb1d25634aed87eedf74ba02931848ff99c1fd3957ed939f66232812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/bench_qwen.py:85-89 | src/llamafactory/data/collator.py:156-160 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/llamafactory/data/collator.py:153\u0060 calls \u0060getattr\u0060 and \u0060scripts/bench_qwen.py:82\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/bench_qwen.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaee7e8e036499dc85eba1e93e44a158f462d7e9c1b8f1675a533b538f7f564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/eval_bleu_rouge.py:45-50 | src/llamafactory/train/sft/metric.py:120-125 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/eval_bleu_rouge.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4883714b401be3ae228729e3e770133022ce92f2e8a63eb52548d33596f6699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/llamafactory/data/processor/feedback.py:88-94 | src/llamafactory/data/processor/pairwise.py:73-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/feedback.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e70672e926b0e360c132667c5c1eeaa88152d775daf4a20e5f97755c574ab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/llamafactory/train/callbacks.py:146-150 | src/llamafactory/train/callbacks.py:160-168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/llamafactory/train/callbacks.py:158\u0060 calls \u0060join\u0060 and \u0060src/llamafactory/train/callbacks.py:145\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/callbacks.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff5e15845eb1bccf7ffabf3b3fcb2a1a3fd5893ec6cf2d2cb605b976d46d0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:523-530 | src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py:533-540 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdp2.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f36626bcc0315f48e809bd9a4852dddd47bdf847332a23a277f37791875062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/api.py:24-29 | src/llamafactory/api/app.py:128-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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: \u0060ChatModel\u0060 names \u0060..chat\u0060 in one and \u0060llamafactory.chat\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/api.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8575f3e921af707332d0d6d449437f285e26e6ea82285921e8440374d56f1e89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/llamafactory/extras/logging.py:82-90 | src/llamafactory/v1/utils/logging.py:45-53 \u2014 before extracting anything, compare \u0060src/llamafactory/extras/logging.py\u0060 and \u0060src/llamafactory/v1/utils/logging.py\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a 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/llamafactory/extras/logging.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff77668ed69043795d171aa96c0f024569adb52e5f98d60cb5fe08e30135128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/llamafactory/extras/misc.py:381-386 | src/llamafactory/v1/utils/env.py:20-25 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/llamafactory/extras/misc.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6da0e153a9c0b243e61b4958edd6ee7b20b54f595e755889772062951c58f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/llamafactory/train/rm/metric.py:32-37 | src/llamafactory/train/sft/metric.py:66-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/llamafactory/train/rm/metric.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23378534b8c700ca4fb7e757f4a75b5218981c351c3d9a20dc674a263659b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/llamafactory/webui/interface.py:92-97 | src/webui.py:22-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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/llamafactory/webui/interface.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ad70e530c6b8fdd0deedf95f14e4508c57fc975f4de8fd992a4a01b8f74287"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py:82-87 | src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py:210-215 \u2014 both copies are in the same file, so extract the block into one function there 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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdf1b74d3ad7ea25648e9b9f897f9d8bc1a5a815846f32e06b68fd811aff5ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/llamafactory/webui/interface.py:66-70 | src/llamafactory/webui/interface.py:84-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/interface.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"76982e7ea91b4e950f014b4484391c8fb8783b06cfd38aa93a72d82f3afcb650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): scripts/loftq_init.py:41-84 | scripts/pissa_init.py:40-82 \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":"scripts/loftq_init.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71f7ff2777d10ff3b0eb8ea1977330225777d40d0acc8047a27115b3ece5c57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): scripts/convert_ckpt/llamafy_baichuan2.py:97-108 | scripts/convert_ckpt/llamafy_qwen.py:150-161 \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":"scripts/convert_ckpt/llamafy_baichuan2.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d411b506344cdba8efc3d1b589acf6699193c48abde719e7f47a994358899859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): scripts/convert_ckpt/llamafy_baichuan2.py:50-73 | scripts/convert_ckpt/llamafy_qwen.py:85-108 | scripts/llama_pro.py:96-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_ckpt/llamafy_baichuan2.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"314bf090e3b3850b4fe01867923ced28fb5a9576d86b2ebe265c90677ca0a416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): scripts/loftq_init.py:65-83 | scripts/pissa_init.py:57-78 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/pissa_init.py:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/loftq_init.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7fcceb413d97611951ec22f7bcaf04791fc0d64ece04c9f435008348b98c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): scripts/stat_utils/cal_lr.py:55-71 | scripts/stat_utils/cal_ppl.py:75-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/stat_utils/cal_lr.py:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/stat_utils/cal_ppl.py:92\u0060 calls \u0060load_model\u0060 and \u0060scripts/stat_utils/cal_lr.py:72\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/stat_utils/cal_lr.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"07dda252e11e398294241758142a4bb4aa65fccc439e95a29f77719298c5ff05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): scripts/qwen_omni_merge.py:78-86 | scripts/qwen_omni_merge.py:126-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/qwen_omni_merge.py:71\u0060 calls \u0060merge_and_unload\u0060, \u0060setattr\u0060 and \u0060scripts/qwen_omni_merge.py:123\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen_omni_merge.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e481ee9f3157a37948740c57a12061917dcab2d2555cec69d2b4c56337991ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/eval_bleu_rouge.py:62-68 | scripts/vllm_infer.py:254-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":"scripts/eval_bleu_rouge.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac363489b9b40608227ab1d93104d656171f869a20b0b4a0435e23795648cca"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HyperParallelTrainer (LCOM4 7): HyperParallelTrainer\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/trainer.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"809ceb698ac090fef8307d97e834c9685fc6ff71541620eff7b21503d931d8c8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CustomKTOTrainer (LCOM4 4): CustomKTOTrainer\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/llamafactory/train/kto/trainer.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd7790a2bd44fc8ec162b34762cbbdb350cfe33ffe66b305879b9e35793f88d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/llamafactory/model/patcher.py: src/llamafactory/model/patcher.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in patcher.patch_model at line 440. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 21:16:47 \u002B08:00\u0027 --until=\u00272026-11-13 21:16:47 \u002B08:00\u0027 --full-history --no-merges -- src/llamafactory/model/patcher.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/llamafactory/model/patcher.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd746f5c2a605a239f0413052801f7059dde450bb50b1a0d19e66faabb7cc861"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/llamafactory/model/model_utils/liger_kernel.py: src/llamafactory/model/model_utils/liger_kernel.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in liger_kernel.apply_liger_kernel at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 21:16:47 \u002B08:00\u0027 --until=\u00272026-11-13 21:16:47 \u002B08:00\u0027 --full-history --no-merges -- src/llamafactory/model/model_utils/liger_kernel.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/llamafactory/model/model_utils/liger_kernel.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fda51297e0a023976c9f1180108e745d6e211cc2ea5c1b0505f53fa37a8d81f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py: src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in FSDPTurboFSDP2Engine.prepare_model_ep at line 351. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 21:16:47 \u002B08:00\u0027 --until=\u00272026-11-13 21:16:47 \u002B08:00\u0027 --full-history --no-merges -- src/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.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/llamafactory/v1/plugins/trainer_plugins/distributed/fsdpturbo.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b60f4649e241486c10f91cd0215aae547cdfe9ce3195ac5792e37d3a310d52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/llamafactory/model/model_utils/moe.py: src/llamafactory/model/model_utils/moe.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in moe.add_z3_leaf_module at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 21:16:47 \u002B08:00\u0027 --until=\u00272026-11-13 21:16:47 \u002B08:00\u0027 --full-history --no-merges -- src/llamafactory/model/model_utils/moe.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/llamafactory/model/model_utils/moe.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb596d9881faf25dcec95e080f67806433d359733871566a0fe4717fb8cf90e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/llamafactory/model/model_utils/attention.py: src/llamafactory/model/model_utils/attention.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in attention.configure_attn_implementation at line 32. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 21:16:47 \u002B08:00\u0027 --until=\u00272026-11-13 21:16:47 \u002B08:00\u0027 --full-history --no-merges -- src/llamafactory/model/model_utils/attention.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/llamafactory/model/model_utils/attention.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5219f4fd874f254732078dc4e4cd0fa3d0aeff36e2d55788f6adbd0902478947"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/llamafactory/v1/core/base_trainer.py: src/llamafactory/v1/core/base_trainer.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in BaseTrainer.fit at line 250. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 21:16:47 \u002B08:00\u0027 --until=\u00272026-11-13 21:16:47 \u002B08:00\u0027 --full-history --no-merges -- src/llamafactory/v1/core/base_trainer.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/llamafactory/v1/core/base_trainer.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1eb9e94ed56584cb648e548baf117c360ce2cac85f8fb3fde550492100b412d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/llamafactory/hparams/parser.py: src/llamafactory/hparams/parser.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in parser._check_extra_dependencies at line 272. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 21:16:47 \u002B08:00\u0027 --until=\u00272026-11-13 21:16:47 \u002B08:00\u0027 --full-history --no-merges -- src/llamafactory/hparams/parser.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/llamafactory/hparams/parser.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e317a46a0255f98f7e170821469d5fbb4ed51cc0fc130060779fe4de60846516"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 3 significant file(s) lose their only recent owner: src/llamafactory/train/sft/metric.py, scripts/stat_utils/cal_lr.py, src/llamafactory/webui/engine.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a51c75ec24e68f52bd95850ce8ff56271ee71a70883f3bb0ad60eaaca17a6a80"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (5 single-owned of 170 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 170 of the 242 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/llamafactory/train/mca/workflow.py, src/llamafactory/train/mca/trainer.py."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Change to EXPECTED_RESPONSE \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/e2e/test_sglang.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb46d7856ed10a1ed64055e2ed78ea3bf7e281e7aa81367b7517c6e2016d66c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/peft.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"108519b46b7857e646c2e173da298afe2005aca0f6f845b3493b50c4ea5bb33f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/peft.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"107e966e3efabfee301b889b8f3c83782fc6b43290060171698d5d84d00ba243"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO Merge three alltoall calls into one \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/v1/plugins/model_plugins/parallelization/ulysses.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61250b827bb98588fdd5fb865361bff589be29872cdd106ac33dfe03629d8ef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (Reza): change the api on the megatron-deepspeed side so that we only receive all data (q,k, and v) together! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/v1/plugins/model_plugins/parallelization/ulysses.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc67e7b130e1367ff76a85d0f78a4ec6fe2177e4ab338588c6bb1cc804df4b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support length and infinity \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/v1/core/utils/batching.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec909e16e2fe0814ab7526fdf337fcfffb6429b45df945cac28bb0fa614e0c4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: configurable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/v1/core/utils/inference_engine.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"c357ee29424762c6804c2598c49392a7d7da9aeb2446e20fe32c799d01ec4a12"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack here: make model compatible with prediction \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/llamafactory/train/sft/workflow.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfed18204ef41b757344d5d0a349bcf732d8d81fbddc39510e303f80ae9e16a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: FIX SequencePacking \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/train/mca/workflow.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e29f23baf54e876d53ab57f2d781eb19319985cdea2f61b9818c1ca2685ab6"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack to avoid warning \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/llamafactory/train/kto/trainer.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b399c83ce3c5981f127d9969ff897c1e158ee1e4e28cfbcc120a91ada3e63b51"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack to avoid warning \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/llamafactory/train/dpo/trainer.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c34726bfa4f6385a4c4c7bf4e8254512be90e01dae7669e5c2a86ee988f949"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix large maxlen \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/model/model_utils/quantization.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"241a7d357715187546a10ef4ec39f2e0f885ee09f421e23e763cfdcb3b76172a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: need to get video image lengths \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/data/collator.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"708a38dd31f2b13d0c4f0ed3ef864d9ab9fc49a6bbaa0599c93b07d602c734d7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: maybe right_padding_length is large, with improper max_cutoff_len \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/data/collator.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68bfcf6dc96bcb1f17d5fc973a6e81a7d74cb788508496ba35908150f1ee82b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: too tricky, need to be refactored @kuangdd \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/data/collator.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"08abfd61351fc7d27438667a08eeb3294a74c7a111b871f8f3b24390c3aaa8d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support omni models for packed sequences @kuangdd \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/data/collator.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"e869c4f4b2e9e73d618482133bfdb59e94be39093a433838e52777459251d8ce"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME compatibility fa3/fa4 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/data/collator.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"929db8538ccaed9c0f6412d2e85a38aa73d680f6ee1bfb2d7b3803b7faf05f4f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack datasets to have int32 attention mask \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/llamafactory/data/loader.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2572e193d23d5381adb027e0b2fe734fed214fba6ff1d597e8139887cd354e"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack usage when do_sample_frames=False \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/llamafactory/data/mm_plugin.py"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"4310e1571901bbb944eccabec723dba91c6cb4e1319533abd26a2300e88ace32"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use \u0060position_ids\u0060 to achieve packing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/llamafactory/data/processor/supervised.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"930cd07bbcefa6fea10c471ee4607c8f53263502e6560d5e9606668442c60798"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060pyproject.toml\u0060 makes this repository a deployable product (line 78)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f93f7a2c78f190233679ac8202a9f8e691d2305d697b777ee579589e9c4bff1"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (45028 LoC, 433 module-visible types across 49 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"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":"a40483a98e64c918df4de9f0016d2b99b6dff542aa04085c6ac2b6237ed1d0b6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"577ace03d861de9266c15e9e2a4c9f9ed39044f4093e48b106a519567ba57645"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76646383059496a459320219f1a3597ceac020cc1c75c2c4bf9bfe8ba4f75e19"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9efa111154b4814b24624208c9ca3563c356065b1bfd0d2fa0546fe2c4176aaa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"251786df1c629d602aa62af423f1fd58785cb25929a77b8802a38a2616dd32d9"},"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":"0a01ac41f45ca90bf9539d72a38932bc63a15feb3e48a9036d445d38f6a0a4a0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc031f448634e1978ff8098e7f8774922d8c60c8cb8aef2b53bc3aa82098e0a0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31063852595b34a40c9f4194f4c74a4d6082d132cd32866f34d4d6bd6076819d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"03cc5b06016265e31a1a9f6e34f3aac2b7ecf53a7ed8559e1e5169aa0fb092aa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a5292d5fc6c608141f363531ab3a747cdb1a503604c20aabb9e257d08bbe1b8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e9edb40f951ed81620036346a066360b74fe98d705c73512e39df753772a84c"},"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":"c3c3d20dbad5ab5da6cb5a8b1a5e828c0d47e2ac7a04b4411806a9e1cf67d5bf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd89a1c55ac09e33a18b116f85388c233ba8c70bd6d8ca2df80b639acba892df"},"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":"d518fad90d9488aeda4a0c11d73b32f296bdbbbffcf86d09897e7e67ebbe06d8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8500bd444dd29b22a2b7ee47bd5fb7323de7a5296fca9e95d0d7da12354cfcad"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0aa40207f4235d9e02b70e9248c9800d00440cfd4f079aed28deea71e7b3c198"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d302734be4e98bd324964484cae4242a57216790575642e1e2d89792a6546d2a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e9e9d938b2c8da22bea3ca1a54d8a9c4f22108683329559c9cdd3187495ca2c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"50adbcd711dca68f872cf2be71adcafe71227cad845e99d760eb77a975a1047e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fbc6df3d72864219648f8a5e2a3fe4857d204776cc76785ab693bf45ade35c2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3bfb062085fda1f3c91e45900c000e1ef9d1449d8ad7ab90e3a7218da6970c0c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"47377aa8659f8aadcdd7c9ce0cea201eb0d99596c65fcff940d7ef089d615860"},"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":"d818e944899ba27da1fbc623858eb1f91f4682165316fc5b831f8d206800cdd7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"33609cb6c561d733f17a9a2c5763bf75456b91604965fa40fdd4091cce3f1f41"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6fadf0a49504a37f658341918d743ba6e7f23a8c8078ad4a5da00ab1f4dc0f07"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6719b7e195df232141e864d2e6f8d8c2077cd0be660260e3e9d420a561ec1f0e"},"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":"cfcec46a767c9c18f45a360fa9228e615da7842913e5d6c7c4dfb925c363734f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bb39033833367831a904913d527070ebc133e2ba95ece9a1f3461f7baa4183f3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64a94277c3507d98ffafc5f6a2aa0f6024e36a3a79300346a9e78e44a0fe2765"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4cfa27e151a90992e40abab22c9bb464f2e9fdd42da3738ec931d426817403f3"},"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":"b29d966bc66e3c42a194cda07dc94f881b0a4c556ad1fb0b3eec1faa2867064a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67b1c8dd7742cd9687e98ff68b545535888419bbe8278acf957b2788abb60fc2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25ec8090cdd4f1754e5ee01d29030094d1f2ee682c2e28d29e83cf1ca952d78b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66f0aed5633ccac7aefbbced5f6ca62b89f7193410197ee1a0a299ad13cdd555"},"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":"db5fdb7f3137b81f754dbd4559905971375bc7c3822cabd4d183ef6a900e2895"},"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":"b912fbbc6d164fc5a0d81738839b3ed8616676f9a748e7d9c2a6d7d6a4d0420a"},"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":"6cf5b2bec8e8f90fb58329bf93dbbca561d1994787151bb8d795148e27003e6a"},"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":"0e98f2d40423f19072121c36563438b3c7d23aefa46d1b4b03a81ef568eb0fa4"},"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":"6ee17b4a60f2eee8d6c7776d6e95ad143cf4418b953dad6f2c58bedfcb489a4b"},"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":"7dccae0c688a8da8c149e35d7ea69e8fb41461c4206765e5ce3f2ecbe7661f1f"},"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":"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":"c9cf4880cca0a82902113e2c30910fa040d968399b5d14da4887008655cec3fc"},"taxa":[{"id":"CWE-942","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01ed86334a9292547f6b447c10892a2e974da31d2764e6875e4e307d20b5eccd"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85102782972466250772c857936e5f8c16558edfa7b6d8c74d017a64488a995b"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2584b3456f6c0a32dce8ec3b62930f0cbe37601a4ae53097ce0a1a2240d17994"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d48d42e8789d9a4b7e3563beaa4250a73ad34c6f83db8d9da481069864afb512"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76aa3c009db32d1cc468f94d06897a6e536eece37ed33a8d0d7d5d8253ea1fc6"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"51a64b6e158e2447ca9ce38884b77b7b3e98631f77bc5f7a2399147eca0e7acb"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab03ef8ae070f65cdc685d52a7753f74782ba81fe14eb3481562a628c915dcde"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8a34957c4f94e1afcdaf77fbe9ed27cf4287469fe5106a54f3447640ec0b6233"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64f2759eac67c14a2dea2d1bc37a49a8be5222df190830100d8d39a8885e8dbf"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e608a1560c3d31b4fb48074707ed151cb922ab58dc10063c0a4737ca9372d982"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0697eef4bda48c25ea870a9409710193790c976f193a2b667b61237954fdba73"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df2307b7f749a5612670ac6fa62e267a5395d83159eade515df9212cdde2e940"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ba4b04e8cdfef2f1f561d2653740e3e5892188966daa7518175f25cb15595e66"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5f5b0d8826c4aa3861e47a7d3a26e046ed2382245f2b240c408e11a2198d93d8"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"39063a2fabf2993cdaa83ce5673d1d3004a73dcc24b118614b942668d905a57e"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"491725c3c88ffac37f24aa99e3877f01cb30f03f27e1fc18b6970859c1ea813f"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a0387e7a33fc2a295cfaaa209ca53afc7ae7b4a2b4ed3cf990777d0963937e4"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6dc64f9d89081ef86bc1df295173dad136dc8631bf999f5ed272c230a9e18e36"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8cd1d59cca2bad486f14a6c63c4706b0fc4958f439d1010232d748db26e1da5b"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d29cbd17f2d9f4ad4e29041c91c7b7191fab2544df7e8655b14064ff9a16db8e"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77de792031cd1bb1ea933c9c2dfe94fe9d810881b473d4ba43e2502d29766363"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df0188bde8760d300b584009e482aebf146fce05385e5fec6e630b1a735aae8b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19b4571e7814047b19b40d315e523de7338803feb1a800253a460338929d16c0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"13ebe5ff93bd75783a8a811f941b86086eac48842856aa151068aff40291ce2e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c91e6ea2e3ea6b085e6ba7ca9b1bffd131dd61df7bf175169cdf066991d415eb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a2aade0515d054fb30097c695c17955e54889a6f59126bebc3d2d8a5a732f672"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1d3f122df484b60d3f7d1795b53070c2c26c01c90db1e58d7efa3abf9cf14f99"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2fa2bcccbc9c0dd50db1a3b1aa345665796b00df2a0d86c9e946df7a8ef0f6d5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a9ee4ec889bbcd7fdbed418ee49a9a9673130d8e0af2d977e8764bb811c3522b"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-693","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-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d2c1afa5e6855feeebd5fa182f0a16b03db019d419d3fd13babb8d3eee0a469d"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8e8c36f29e22696e663fdfe80089782ae75324420808d8677a6c36218f25608a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e32e6307d4136c4593e8b90096c1c56c38b7db54b16597a83d0bcf71f81bbab9"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a4bce4cf627ea16f814ea4357e414937f9140cda4afa4689ff49080128647de"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ce14c197bf51f96b2ff68af41115fb3dc614c1475011faea2c4af2fc6b218ab"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1cc4c1f6e8e38fd7e1cae94af9cdcf85b39170f3a28bd5aae17e6e317ce29f28"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c807f2d283fcf38adba59e1dc08967a4d284b9f06e00e128db6f49a4dca8af13"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e0cd37e211fd2a0b8164d8fffc85bb2c781b206add58883557a1035e2c0d88e8"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8d920e4152c64da0cbd1fae6425b586995edd34f00fa886bfe8a59cacc2f1de"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb97975e78212cc2fe9f3b0fc04b93f54ae7aa1e6f4192fecc5bebae1502c5e3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eec55f9857d58a3fc62bdd9d8ac118f39ce0b066698db0deb18b03c5124b07b5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd992e9ccce973109bf3368a098b4c271b387c3513909499045661eaeba0b256"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2ecdbf9d0638f0d808618f50669c0cbf4d86f0f97958e7da84565d4e1b1f699"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"560d88e68625b137c7df06106af5213e57616519c2bb557ceeff5cf8050a7400"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b10b3055a253678aa1deb24bec4a4b71c040e11feb0c0f15eed4b8c27ccf12db"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9d097ca20e491f9a29328a735729fd284e19aaf59b3375cca51d21bb10316b7a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78849cc566f1198ee16785927041cb271fc39431344ce1402b1b7c536f055032"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"72f502386ab8ff565346f87461e5ec1403b3833cd6bb3702c4b3768c65278a39"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d1eaef115a6139025003bd88ba821380a6d3d3ebb934f5931cf985f8a2bfcf7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d99b0618e56a37e47696df64a49cf8484ad8c5ada3cbb1a9925bb11f195811b8"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-693","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-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"29fc535f676c964376d2634bd83a8e51b5a659ccc3d94c1094e193e327a08754"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c19a4ccc27811c16e3cbdc751f978e477ae0fd536f722e1e48a295aa5d6510c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"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":"72f6ab43f2c41ba09067a9a1e8c2db43d3b7d6bf42c94501066429aefa9fec4f"}},{"ruleId":"D31","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":"3401a926a4b0e4af16c08c29fad88319419c81d15d33bf2a0d7ff69ffb9a2cac"}},{"ruleId":"D31","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":"f13aabd52fd65d914a13fe84bea7d4d0f27f5f04946c8ff1f4a14e93017bac6b"}},{"ruleId":"D31","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":"3a5e42b52439b1cc9f2234e35b142f405109b809effb23b8ea659d0d2f0e2b52"}},{"ruleId":"D31","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":"9829ad8e91af516d3e2d6883ed0d5b6d94a3b45700f698610a9111be67b837b1"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/config_builder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46a0751812f16e8593ca3087b4a97ac56f236d7a43c8683c3273bb5a9f7b716"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 15 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: src/llamafactory/train/megatron_bridge/workflow.py, src/llamafactory/train/mca/workflow.py, src/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py, src/llamafactory/v1/plugins/trainer_plugins/optimizers/muon_optimizer.py, src/llamafactory/train/megatron_bridge/dataset_export.py, src/llamafactory/train/fp8_utils.py, src/llamafactory/hparams/megatron_bridge_args.py, src/llamafactory/v1/utils/callbacks/trainer_callback.py (and 7 more) (16 orphaned of 170 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 170 of the 242 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/workflow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a8e7c24de4ad53f7a62fa527e8d346cbe6d2574a60d3de430468f774906fc0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/train/mca/workflow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbfffef1662783eb0133a2227c0bc6ce1986e3ac02544a1de8f3304fdad3f2a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/triton_grouped_gemm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0b4eea029a835bf7d8844f137f3a64fd37ba5912d3832dc7ae1b980c50d73d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/v1/plugins/trainer_plugins/optimizers/muon_optimizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"134a2f380603f7e1d01c34298de93f921968854ee48e24cb2a0983bf5fa32562"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/train/megatron_bridge/dataset_export.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"516a53d151ad8b9aa1ab96601581c9938b437790d78e1ec6cb221d3673c360ed"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/train/fp8_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6183893c9cd468bda729f3bb2136cb955a3fc33a1e268d123862b4b219bafe5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/hparams/megatron_bridge_args.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a016c90aea548781d2b4348f4408746012c35fde699519de50771a774e70584"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/v1/utils/callbacks/trainer_callback.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76670d00c7bc14324b57e60b2902b5e7f93c8eee00c1689162c84ff015523b51"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/v1/plugins/model_plugins/deepspeed_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d5a899e2eb002cd3adabfeefab2afdf451c8170cc5ed23ff93d8244b8f796d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/megatron_merge.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fa1041b0c379a753d8f4712e2b798b2657d242a1dc753f580347028c1bbeea"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/v1/core/rendering/escape.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0914787ef26809559df7847cf3e8ce515d17e0e89be6710acd83de1c31e20dde"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/v1/plugins/trainer_plugins/optimizers/optimizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"241c122b43d2e3f75ae70bbcd9103baba4a359adc1900c899c4d3ad743eb59a4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/llamafactory/train/mca/trainer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2329784a3ef9994d6b50285852744c903621dc722d9cf11f407c7ceac560eb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/dcp2hf.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38bb58e21a29e89f0f97dfda50ab35cc20927802239ce3832ea1c212d635c38"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/eval_bleu_rouge.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a11ed2107268888cda9cf571bd41de95fa954b870cd36fcfe432bc008ac9d1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: cal_lr.py, cal_ppl.py, length_cdf.py: 3 files \u2014 \u0060scripts/stat_utils/cal_lr.py\u0060, \u0060scripts/stat_utils/cal_ppl.py\u0060, \u0060scripts/stat_utils/length_cdf.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":"scripts/stat_utils/cal_lr.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53233a3ac8dc35959c084afa6ddcabd10b6d283a528607428d84a77f627b0fb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: workflow.py \u2192 workflow.py, workflow.py, workflow.py, workflow.py, workflow.py: \u0060src/llamafactory/train/rm/workflow.py\u0060 changes together with 5 other files \u2014 \u0060src/llamafactory/train/dpo/workflow.py\u0060, \u0060src/llamafactory/train/kto/workflow.py\u0060, \u0060src/llamafactory/train/ppo/workflow.py\u0060, \u0060src/llamafactory/train/pt/workflow.py\u0060, \u0060src/llamafactory/train/sft/workflow.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/rm/workflow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a656a4e70067546e1d4c09000896294552a21a2eb679eb88861e0d86f140d155"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: workflow.py \u2194 workflow.py: \u0060src/llamafactory/train/pt/workflow.py\u0060 and \u0060src/llamafactory/train/sft/workflow.py\u0060 change together 81% of the time (22 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 22 shared commits counted here, the most recent 3 are \u0060acb09fa3\u0060 [trainer] fix key error (#7635); \u0060af178cbc\u0060 update get template; \u0060e4d11a11\u0060 fix up \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/pt/workflow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"400043684d3d07ad17006b93a2069596972c099b38a6e33c2ba9425a92f5a903"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: workflow.py \u2192 workflow.py, workflow.py, workflow.py: \u0060src/llamafactory/train/dpo/workflow.py\u0060 changes together with 3 other files \u2014 \u0060src/llamafactory/train/kto/workflow.py\u0060, \u0060src/llamafactory/train/pt/workflow.py\u0060, \u0060src/llamafactory/train/sft/workflow.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"038f4edc235699a7e5bc3c82055095fd8ff40bedec8969141aad5f261ea15477"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: workflow.py \u2194 workflow.py: \u0060src/llamafactory/train/kto/workflow.py\u0060 and \u0060src/llamafactory/train/sft/workflow.py\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \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 8 shared commits counted here, the most recent 3 are \u0060416853dd\u0060 [parser] support omegaconf (#7793); \u0060acb09fa3\u0060 [trainer] fix key error (#7635); \u0060fb22651f\u0060 fix mrope \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/kto/workflow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fae06999ef09bb78bf6c725653ad9a4a882b60d5d7831549d5c935357fd1d26"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: train.py \u2192 eval.py, locales.py, runner.py: \u0060src/llamafactory/webui/components/train.py\u0060 changes together with 3 other files \u2014 \u0060src/llamafactory/webui/components/eval.py\u0060, \u0060src/llamafactory/webui/locales.py\u0060, \u0060src/llamafactory/webui/runner.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/train.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b145fa2902949067757ef04f27ae73ba00eb1918cd10b45a29245ceaea8a0086"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: workflow.py \u2194 workflow.py: \u0060src/llamafactory/train/ppo/workflow.py\u0060 and \u0060src/llamafactory/train/pt/workflow.py\u0060 change together 67% of the time (18 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 18 shared commits counted here, the most recent 3 are \u0060af178cbc\u0060 update get template; \u0060e4d11a11\u0060 fix up; \u00605f2bd047\u0060 1. add custom eval dataset support 2. merge load dataset and split da\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/ppo/workflow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4de42f2e8d6916c11a0587eadb34b3bd4ea62ce1dd7bbf525eaf239cb12fe8a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: chatter.py \u2194 chatbot.py: \u0060src/llamafactory/webui/chatter.py\u0060 and \u0060src/llamafactory/webui/components/chatbot.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 \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 11 shared commits counted here, the most recent 3 are \u00605987a8dd\u0060 [webui] add seed controls for reproducibility (#10629); \u0060052ca871\u0060 [data] optimize qwen3 loss computation (#7923); \u006026357947\u0060 [webui] support escape html (#7190) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/chatter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bb5462f7c182f3c68248b6926668566dda632cd615f0218ca87c81e30e0a36"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: eval.py \u2194 runner.py: \u0060src/llamafactory/webui/components/eval.py\u0060 and \u0060src/llamafactory/webui/runner.py\u0060 change together 57% of the time (12 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00605987a8dd\u0060 [webui] add seed controls for reproducibility (#10629); \u006026bc79f9\u0060 fix #4043; \u0060182b9747\u0060 fix eval in webui (at that commit the files were still \u0060src/llmtuner/webui/components/eval.py\u0060 and \u0060src/llmtuner/webui/runner.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/eval.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2990a01e98e961b8858ff29d6c8dd07dd2544daaa0ef7cf5c9e0c24ba0aac8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: top.py \u2194 runner.py: \u0060src/llamafactory/webui/components/top.py\u0060 and \u0060src/llamafactory/webui/runner.py\u0060 change together 56% of the time (19 of the 34 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 19 shared commits counted here, the most recent 3 are \u006087d685b5\u0060 [model] support yarn (#6693); \u006031daa657\u0060 [webui] upgrade to gradio 5 (#6688); \u0060aeeee9d4\u0060 support extra args in llamaboard \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/top.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f7e963576d1c253090d9c164bfa5f49396ee83bf1417f93df557c2ed4d4b45"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: top.py \u2194 locales.py: \u0060src/llamafactory/webui/components/top.py\u0060 and \u0060src/llamafactory/webui/locales.py\u0060 change together 53% of the time (18 of the 34 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 18 shared commits counted here, the most recent 3 are \u0060dc080399\u0060 [model] add seed coder and qwen3 quant models (#8039); \u0060db9b977e\u0060 [webui] support ja (#6698); \u006087d685b5\u0060 [model] support yarn (#6693) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/components/top.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86240593809fda75914468b7122662a4b8c662e05c30bffd76be763a2ff5e288"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: __init__.py \u2194 packing.py: \u0060src/llamafactory/__init__.py\u0060 and \u0060src/llamafactory/model/model_utils/packing.py\u0060 change together 50% of the time (13 of the 26 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u006039169986\u0060 [trainer] fix pt loss (#7748); \u006086ebb219\u0060 [breaking] bump transformers to 4.45.0 \u0026 improve ci (#7746); \u00604d1791e9\u0060 [deps] upgrade vllm (#6857) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"635ac54830d3a1f96ddec79a86e66fc55a50776851fe8cf99bcc5546165a3713"}},{"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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","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":"2507fbda97c2bd11f65ba40c195280877e658b571482d8ce9ea7678c198816ee"},"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":"3f6dc66ba02281b1aead7ad1e26542eb1cb7208ec913347d188ec5f97f49da67"},"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":"0c21e0dd3715be1216f38c6c5bd476c82241d0716be59d9e3a80fd1d6176a644"},"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":"5f157831f23b2a81bb7dbad241893ffe15aae23474e756a077f9ad3fe430a916"},"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":"3e910ff3bfcb5373f7e1dd3f86be2f25ecf4fa53935fcba8ee434c7f75b76657"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"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 8 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/docker.yml"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.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/llamafactory/api/chat.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"16077b00c825c6cfda1641e5e58adc3fc17f08c254fa5706bc449d7d27946aa4"}},{"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/llamafactory/api/chat.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2353f7ac2ab74057acd6fcfc83a6dc3fa1d1e441eb37c6eba853a8150cde597f"}},{"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/llamafactory/api/chat.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"692693befdc88391414f764dbff53942fdb4c8ca57e33e4d6196f042a34fc857"}},{"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/llamafactory/chat/sglang_engine.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a974f416e7555a52406b50ab31262ceba6fb181f509dd236721f4b0175feb1"}},{"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/llamafactory/train/ppo/ppo_utils.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"343ce8c572826fa64b3cec0e2a1ddfa1469257dc6e7fdd9e13e80b130b546bb3"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/api/app.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"860f66b875fada3c2d0a65d19dff43e59e719414fc4304a64c8911981569ae93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022Linear\u0022 in module.__class__.__name__ and \u0022Embedding\u0022 not in module.__class__.__name__\u0060 appears character-identically in 2 files \u2014 src/llamafactory/model/model_utils/misc.py, src/llamafactory/v1/plugins/model_plugins/peft.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/misc.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f465dae0b3f712807754f3c32bf19c49e5d62a1b67932544edb592c9df34709e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022chosen_messages\u0022 in sample and \u0022rejected_messages\u0022 in sample\u0060 appears character-identically in 3 files \u2014 src/llamafactory/v1/core/rendering/rendering.py, src/llamafactory/v1/trainers/dpo_trainer.py, src/llamafactory/v1/trainers/rm_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/llamafactory/v1/core/rendering/rendering.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88a2994049281dc10a7f107be193fbfa65346b5975f096ea26b0187393da3b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(not data_args.overwrite_cache) or (training_args.local_process_index != 0)\u0060 appears character-identically in 2 files \u2014 src/llamafactory/data/converter.py, src/llamafactory/data/loader.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/converter.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e69253ef1f1d61d74588bb1344daca6beedf19d6d14ad5d9c3935b7dd130a50"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dist.is_available() and dist.is_initialized()\u0060 appears character-identically in 3 files \u2014 src/llamafactory/train/callbacks.py, src/llamafactory/train/megatron_bridge/workflow.py, src/llamafactory/v1/plugins/trainer_plugins/optimizers/muon_optimizer.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/callbacks.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba165418ec3c9ebd20329a212bec546a7b4b99b25a0338bb053cff1cae91b5d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060finetuning_args.ref_model is None and (not training_args.do_train)\u0060 appears character-identically in 2 files \u2014 src/llamafactory/train/dpo/workflow.py, src/llamafactory/train/kto/workflow.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"42859e050f377310fd40594a2654fbad8ce6eda23de127241c6e58254f014ed3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_device_count() \u003E 1 and not use_ray() and not use_kt()\u0060 appears character-identically in 2 files \u2014 src/llamafactory/launcher.py, src/llamafactory/v1/launcher.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/launcher.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"355880894a56361c423cddbc5a59f302a26d0720c290df8c3fc3afc2f9bc98d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(ref_model, \u0022is_loaded_in_8bit\u0022, False) or getattr(ref_model, \u0022is_loaded_in_4bit\u0022, False)\u0060 appears character-identically in 3 files \u2014 src/llamafactory/train/dpo/trainer.py, src/llamafactory/train/kto/trainer.py, src/llamafactory/train/sft/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/llamafactory/train/dpo/trainer.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"191b87a981b21d53781d68c14a637fde7a93ffa680ba35a6ad528921398aea0a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_deepspeed_zero3_enabled() or is_fsdp_enabled()\u0060 appears character-identically in 2 files \u2014 src/llamafactory/model/model_utils/quantization.py, src/llamafactory/model/patcher.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/model_utils/quantization.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f351fe63759a0243d912340a5911bb81abbb71855ea599b0258996eb49436b44"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_env_enabled(\u0022DISABLE_VERSION_CHECK\u0022) and not mandatory\u0060 appears character-identically in 2 files \u2014 src/llamafactory/extras/misc.py, src/llamafactory/v1/utils/packages.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/misc.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e06caa76e11ecef50b38fde9a6713bfa126bf3e638bfe9e34f55c239fe9984"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_torch_npu_available() and torch.npu.is_bf16_supported()\u0060 appears character-identically in 2 files \u2014 src/llamafactory/extras/misc.py, src/llamafactory/hparams/parser.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/misc.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcef94aa3c6f952ac025ae27bc1fafc3ded05df5e534a14c55d7e47c8ddbd7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(\u0022 \u0022.join(hypothesis).split()) == 0 or len(\u0022 \u0022.join(reference).split()) == 0\u0060 appears character-identically in 2 files \u2014 scripts/eval_bleu_rouge.py, src/llamafactory/train/sft/metric.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/eval_bleu_rouge.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"581427f0fd7205706a05f08745ed92c60c3deeb228cf444e925d1f1e26cc5520"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(examples[\u0022_prompt\u0022][i]) % 2 != 1 or len(examples[\u0022_response\u0022][i]) \u003C 2\u0060 appears character-identically in 2 files \u2014 src/llamafactory/data/processor/feedback.py, src/llamafactory/data/processor/pairwise.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/processor/feedback.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5a2f9180c5ecaa79c083e2dbaa0e4e1317f293babca0e7dccfcb4b8c971bf2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(sys.argv) \u003E 1 and sys.argv[1].endswith(\u0022.json\u0022)\u0060 appears character-identically in 2 files \u2014 src/llamafactory/hparams/parser.py, src/llamafactory/v1/config/arg_parser.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/parser.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63401d1ec468e4c7581ffacb5cbfdda21e85ede8983ebdad926be5fdfe2b549"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060min_nnodes is not None and max_nnodes is not None\u0060 appears character-identically in 2 files \u2014 src/llamafactory/launcher.py, src/llamafactory/v1/launcher.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/launcher.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c257dd074d1d3dd70b6295ae25a3ad07156f8466b7b51ac2a781d04505d1eeaa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model_args.print_param_status and int(os.getenv(\u0022LOCAL_RANK\u0022, \u00220\u0022)) == 0\u0060 appears character-identically in 2 files \u2014 src/llamafactory/model/loader.py, src/llamafactory/train/hyper_parallel/loader.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/loader.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"628c554fbe9096c96c5964a8f0229d597a807e3e8a4199642e4c0cc63492369f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model_args.use_v1_kernels and is_trainable\u0060 appears character-identically in 2 files \u2014 src/llamafactory/model/loader.py, src/llamafactory/train/hyper_parallel/loader.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/loader.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9028a68976f554dcc1c55d9b4c3fd0a64e16430dc993bc6d6eb3a7b283a2744"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060param.ndim == 2 and \u0022embed\u0022 not in name and \u0022lm_head\u0022 not in name\u0060 appears character-identically in 2 files \u2014 src/llamafactory/train/hyper_parallel/trainer.py, src/llamafactory/train/trainer_utils.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/hyper_parallel/trainer.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4916ae65042827dd9811ecea7796e940388eef6de403022a2e9298742e95fbfc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060position_ids is not None and batch_size == 1\u0060 appears character-identically in 2 files \u2014 src/llamafactory/model/patcher.py, src/llamafactory/v1/plugins/model_plugins/parallelization/gdn_attention.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/model/patcher.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42d2ccf5429e420881ef16308e546ebe082ca230e44daacbf67fffac399fec9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060quant_method == QuantizationMethod.GPTQ and model_args.infer_dtype == \u0022auto\u0022\u0060 appears character-identically in 2 files \u2014 src/llamafactory/chat/sglang_engine.py, src/llamafactory/chat/vllm_engine.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/sglang_engine.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af95fbd6a0ccf3b75349693c27c90df91ef65a414972fb7a96a701672c63ee6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.model is not None and hasattr(self.model, \u0022get_rope_index\u0022)\u0060 appears character-identically in 2 files \u2014 scripts/bench_qwen.py, src/llamafactory/data/collator.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/bench_qwen.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1d13ffcf413f048ecbf239ed924d396d61ce6ed4c9de41d2e7396b8cc86150"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.model is not None and hasattr(self.model, \u0022model\u0022) and hasattr(self.model.model, \u0022get_rope_index\u0022)\u0060 appears character-identically in 2 files \u2014 scripts/bench_qwen.py, src/llamafactory/data/collator.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/bench_qwen.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d573722aa963772e974ed4620d56aea9020b769ed462b9136d58b0ee8283b6fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sys.argv[1].endswith(\u0022.yaml\u0022) or sys.argv[1].endswith(\u0022.yml\u0022)\u0060 appears character-identically in 2 files \u2014 src/llamafactory/hparams/parser.py, src/llamafactory/v1/config/arg_parser.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/hparams/parser.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b029b5f4eaafb171e92ea9c031d05e5bed7d0b5f60e9d7d515a1f9a7d05eefe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trainer.is_world_process_zero() and finetuning_args.plot_loss\u0060 appears character-identically in 7 files \u2014 src/llamafactory/train/dpo/workflow.py, src/llamafactory/train/hyper_parallel/workflow.py, src/llamafactory/train/kto/workflow.py, src/llamafactory/train/mca/workflow.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/dpo/workflow.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f069c37efbd1befa8c2431eb8aaeb9606145b97def85f2428188afed7047200"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060training_args.fp8 and hasattr(self, \u0022accelerator\u0022)\u0060 appears character-identically in 2 files \u2014 src/llamafactory/train/pt/trainer.py, src/llamafactory/train/sft/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/llamafactory/train/pt/trainer.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"737864086688868af6473a1f09f01664b5c5d8a59889912b09fcc0e7176e42ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/common.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b71362fce5e60bf1b5dbd4fc338688aa6a3c56fda1115df5d9cc1cf1829a548"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/common.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ce8984a184d8b18ba33b993d7fd27a021eb69b6c0d6dca2d9da5e442b45be9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/webui/common.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e846c52113d0a8ece8375ffd8a00837474d494052f3343628ea900c717940a53"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/v1/plugins/model_plugins/kernels/ops/rms_norm/supa_rms_norm.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3df7fd7a62ca6d36877e3f697a49d98f8bf7870dbb88924a73daade75a7ff62"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/callbacks.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04d6799f8ad9fbbdddc6d2526213aef27b22ffa16466306ac1f752d119da3a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/trainer_utils.py"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"5607799e8cae011a7f38f679f6d2171aa186edbf5fb925dccb48e8e9bd979f47"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/dataset_export.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"539a6cdade3ba222fbc9d006bf043a10177616753917e0cb4e70215dc7820f14"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/dataset_export.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f02d84c7b969a6fbdf2168485043043c61cf4bd119749d1d1f43acd602ed845"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/workflow.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa438a792858815db3db7e28fdbe7690fb1898542e58201c64389fe3e31aef66"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/env.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a2e292c4167c0403062ba22a0cf5ffb4353d7a1d72e372e6119399aa432aef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/env.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e8414d0211a0051e35fa6facb86de8c9117d9feb9744b7f738daa831b5c42d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/env.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cd5095ffd2d3515cea58c8c4b4321bf2585d2c9a5252a91217c26765a0633b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/env.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ded60b1a465cdd5873004827dbe96e5f3ce6f64083905b4b62ee4f9639f91f2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/env.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f65323371333382cee0d44cd2dc5a129a9d0ac36146957c034b6233d08633e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/env.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"150b8fb09b7b64787e98d209796c0400d75ea35269156c65f9b5965ea8d913dc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/misc.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"438f3d2e56cb9df09604a00b8ae71b2a0b8b4198bde9251fba22574ae6a13978"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/extras/misc.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a542d34b1d374deda5891d25c2a29e11208104512b65661418f9d5d1a0f7835"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/data/tool_utils.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"6115014264667f8ae4b48e1760deeb890a71c3d27712a94b4b60f6ee152da6fe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. On a teardown path letting it propagate is not an option (throwing out of \u0060__del__()\u0060 masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: narrow the catch to the exception this release can actually raise, and record it through whatever this codebase already uses to report problems \u2014 or, if it truly cannot matter, say why in a comment on the catch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/chat/sglang_engine.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c18a38814f37914e704941c1445b15aeb9e653a535146c27c34eefb781bb0e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 303 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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"f804101df7b307954486082f13b9af4e12f7f59f49198d00afd063f547939500"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 394 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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a5551f8c8a1682dc3c5eb5e5469f92584e003c05045c3cb59e78e94d4069ab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 421 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/llamafactory/v1/plugins/model_plugins/kernels/ops/mlp/cuda_fused_moe.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cecb8b1a30ba81200692e1dc1dead3d39b3c2403eaf9a58031420c47c4b309"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_finetuning_dataloader_type\u0060 swallows every exception into \u0060return \u0027single\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/dataset_export.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebfeaa5ae1508900489a9d765c846e0442d49522d146992611ca015f0da5405"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_iter_number\u0060 (in \u0060_latest_iter_checkpoint_dir\u0060) returns \u0060-1\u0060 when \u0060ValueError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/llamafactory/train/megatron_bridge/workflow.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7550972066f5c2567b94884c58280d73a039f866a16a8606020cd42d0966c27"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1188","guid":"90b5d93c-2e8f-7d58-b831-915e7ee4a150","name":"CWE-1188","shortDescription":{"text":"CWE-1188"},"helpUri":"https://cwe.mitre.org/data/definitions/1188.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-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-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"Improper Certificate Validation","shortDescription":{"text":"Improper Certificate Validation"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-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-653","guid":"aa3e371b-590e-225d-a56c-cd490a1dca63","name":"Insufficient Compartmentalization","shortDescription":{"text":"Insufficient Compartmentalization"},"helpUri":"https://cwe.mitre.org/data/definitions/653.html"},{"id":"CWE-693","guid":"b9b141dc-018a-9c59-8953-1e3c4e020745","name":"Protection Mechanism Failure","shortDescription":{"text":"Protection Mechanism Failure"},"helpUri":"https://cwe.mitre.org/data/definitions/693.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-942","guid":"a5e9f9ae-e5c1-215b-b5ef-9b85aa6b4828","name":"Permissive Cross-domain Policy with Untrusted Domains","shortDescription":{"text":"Permissive Cross-domain Policy with Untrusted Domains"},"helpUri":"https://cwe.mitre.org/data/definitions/942.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":106,"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."]}]}