{"$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":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"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":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Alpha158DL.get_feature_config (cyclomatic 37): Alpha158DL.get_feature_config has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/loader.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c15f895827683a9efcab8790fb75b0e250543e18423c42d8fa8c37ed2e29f1"}},{"ruleId":"D1","level":"warning","message":{"text":"SBBStrategyBase.generate_trade_decision (cyclomatic 30): SBBStrategyBase.generate_trade_decision has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5af0a947ad7909092ff509abd01ed4e75faca39c55e96aa51b63c7837a87fc"}},{"ruleId":"D1","level":"warning","message":{"text":"expression_parser._evaluate (cyclomatic 30): expression_parser._evaluate has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/expression_parser.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aea16a29380f9e1de33f8398e37a2ba1ce125c5bcb176375df9d9dcde92238b"}},{"ruleId":"D1","level":"warning","message":{"text":"qlib._mount_nfs_uri (cyclomatic 29): qlib._mount_nfs_uri 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":"qlib/__init__.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f9f1dc055eb99a34e24f0ec09dfcced8cf984dd92893587ecc61dd292cd81d"}},{"ruleId":"D1","level":"warning","message":{"text":"TRAModel.train_epoch (cyclomatic 24): TRAModel.train_epoch 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":"qlib/contrib/model/pytorch_tra.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5271c089e161f5e2f187f28ecf14e8813f4bd06aef78ed82e9b6ea946e2ee1ca"}},{"ruleId":"D1","level":"warning","message":{"text":"DNNModelPytorch.fit (cyclomatic 21): DNNModelPytorch.fit 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":"qlib/contrib/model/pytorch_nn.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46708282ca7e2974901d0a0ccfa6f380c95ee8e2c8e25d5c66322702abf32ef"}},{"ruleId":"D1","level":"warning","message":{"text":"TopkDropoutStrategy.generate_trade_decision (cyclomatic 21): TopkDropoutStrategy.generate_trade_decision 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":"qlib/contrib/strategy/signal_strategy.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8540339592436de643915576d1367527e91b1d74362bad147b2594c081b230"}},{"ruleId":"D1","level":"warning","message":{"text":"TRAModel.test_epoch (cyclomatic 18): TRAModel.test_epoch 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":"qlib/contrib/model/pytorch_tra.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1668f6e89d66431d3e5dc5bf35f08a31421815acff53caf828b23c16d52ce236"}},{"ruleId":"D1","level":"warning","message":{"text":"RecorderCollector.collect (cyclomatic 18): RecorderCollector.collect 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":"qlib/workflow/task/collect.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c23ac1174bc40d25477f24a7743424bc3a17cce18c3ccb1113b76fb92f2937"}},{"ruleId":"D1","level":"warning","message":{"text":"evaluate.long_short_backtest (cyclomatic 16): evaluate.long_short_backtest 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":"qlib/contrib/evaluate.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"3402659e6e551b28496d7fdc0a85dce6225456bd4e9ab3bda56df083f9e62be1"}},{"ruleId":"D2","level":"warning","message":{"text":"qlib._mount_nfs_uri (cognitive 87): qlib._mount_nfs_uri has cognitive complexity 87 (threshold 15). Drivers by points: if/else 20 (53 pts), ternaries 3 (12 pts), error handling 3 (11 pts), loops 2 (8 pts), boolean chains 3 (nesting depth added 56). 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":"qlib/__init__.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e5a2f77efeccd4db358a60c7e5d1f0067de5bd099b024e9d6771684074739e"}},{"ruleId":"D2","level":"warning","message":{"text":"Alpha158DL.get_feature_config (cognitive 69): Alpha158DL.get_feature_config has cognitive complexity 69 (threshold 15). Drivers by points: if/else 33 (62 pts), ternaries 2 (5 pts), loops 1 (2 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/loader.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba4df0a3e05c3cf171cefdf389c19a7744ab9f8997a1216bdbd98e8fb48d5b2"}},{"ruleId":"D2","level":"warning","message":{"text":"SBBStrategyBase.generate_trade_decision (cognitive 64): SBBStrategyBase.generate_trade_decision has cognitive complexity 64 (threshold 15). Drivers by points: if/else 20 (51 pts), boolean chains 10, loops 2 (3 pts) (nesting depth added 32). 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":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68596220d6f7fa61b8cf0f5051a0e8c25159f3031a1362d355052e5fba14cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"DNNModelPytorch.fit (cognitive 49): DNNModelPytorch.fit has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 3 (5 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 29). 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":"qlib/contrib/model/pytorch_nn.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d408b2de947e75ad829baa3f50996d3d3cacec79b051db6e63e9b08bfea826"}},{"ruleId":"D2","level":"warning","message":{"text":"expression_parser._evaluate (cognitive 47): expression_parser._evaluate has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 5, loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/expression_parser.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"6833c9ffeeb07d9edf20b9e56f53300bd58711946b0deaae22af22a0bc96f39d"}},{"ruleId":"D2","level":"warning","message":{"text":"TRAModel.train_epoch (cognitive 43): TRAModel.train_epoch has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (28 pts), ternaries 3 (8 pts), boolean chains 6, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tra.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16527ee1cbe233117c9afca4a224d2cac125f526aaa3fc3477a4d6c5d8a61d1"}},{"ruleId":"D2","level":"warning","message":{"text":"TRAModel.test_epoch (cognitive 36): TRAModel.test_epoch has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (25 pts), ternaries 2 (5 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tra.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"654ac77f36b0e64d5d033f6af6fd40eae87b135332d2e05112aa5fa35530939d"}},{"ruleId":"D2","level":"warning","message":{"text":"evaluate.long_short_backtest (cognitive 33): evaluate.long_short_backtest has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 4 (7 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":"qlib/contrib/evaluate.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddc2b44ab2181683f0ffd2dbf4ec5316cd77ee948d617df8bd027cfcba7d08a"}},{"ruleId":"D2","level":"warning","message":{"text":"TopkDropoutStrategy.generate_trade_decision (cognitive 33): TopkDropoutStrategy.generate_trade_decision has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 4 (7 pts), error handling 2 (4 pts), loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/signal_strategy.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ecbf591ebdadb2b1b0d1c10551667ca523529415b7b4088a2c81415056d6bf"}},{"ruleId":"D2","level":"warning","message":{"text":"MTSDatasetH.__iter__ (cognitive 32): MTSDatasetH.__iter__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/dataset.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c416868999b385d242574935bd0d3f699b5716cd5cd41ae2829e1fb55e1deb3"}},{"ruleId":"D2","level":"warning","message":{"text":"RecorderCollector.collect (cognitive 29): RecorderCollector.collect has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4, error handling 1 (4 pts), loops 3 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/task/collect.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"135c9a1b35e999df36b0d2a8202cf75ea830925b79672a855b96c8266ea21a6f"}},{"ruleId":"D2","level":"warning","message":{"text":"LocIndexer.__getitem__ (cognitive 28): LocIndexer.__getitem__ has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 1, loops 1 (nesting depth added 14). 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":"qlib/utils/index_data.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e668eae6358604769c24652ab446c78a32bb098534bca7f59e8d38cfd1a836"}},{"ruleId":"D2","level":"warning","message":{"text":"ACStrategy.generate_trade_decision (cognitive 25): ACStrategy.generate_trade_decision has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"142f0c5b9451ac682bb7c12c09b32265396f47a80da010cbb5ad8200aa8a9f27"}},{"ruleId":"D2","level":"warning","message":{"text":"Exchange._calc_trade_info_by_order (cognitive 24): Exchange._calc_trade_info_by_order has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/exchange.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44713e4eee5374dd01b8bea858b4ff521c02693553ba2d208b3863f7ab9d17d"}},{"ruleId":"D2","level":"warning","message":{"text":"Exchange.get_quote_from_qlib (cognitive 22): Exchange.get_quote_from_qlib has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/exchange.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c87333bc42db125af76a21318695f17c57eeab7590ca7ac722ab591a2c3d61c"}},{"ruleId":"D2","level":"warning","message":{"text":"QlibConfig.set (cognitive 22): QlibConfig.set has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 11). 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":"qlib/config.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f98bafc0355e8c761e6550000a2eff3f896bf9b4f30268200717f54eb989a85"}},{"ruleId":"D2","level":"warning","message":{"text":"interpreter._gym_space_contains (cognitive 22): interpreter._gym_space_contains has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (6 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/interpreter.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03159997c80090583d90e32a7400f6f2d81a5c5c1f6d7c7797c3c23570aca2f"}},{"ruleId":"D2","level":"warning","message":{"text":"DiskDatasetCache.update (cognitive 21): DiskDatasetCache.update has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (5 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":"qlib/data/cache.py"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"203d188724a6c3afbe06059d34428690ccdf5d55f4b7212cb450a4e5801e836a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientDatasetProvider.dataset (cognitive 21): ClientDatasetProvider.dataset has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/data.py"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"181171d3efd20c8ea4e60812705c1a87497dc8bb9d3bc8afa0a9acea557b5b4b"}},{"ruleId":"D2","level":"warning","message":{"text":"SDFLoc.__getitem__ (cognitive 20): SDFLoc.__getitem__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 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":"qlib/contrib/data/utils/sepdf.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3bbe00e05600e132ec0e67c76fccc24a705f6ca6c58798e37d60c665599d3e9"}},{"ruleId":"D2","level":"warning","message":{"text":"ADARNN.train_AdaRNN (cognitive 20): ADARNN.train_AdaRNN has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (7 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":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15d17c38551b4900f6ec43fa2732cdf7be40f879cff6c8bc742da3536e6c7f8"}},{"ruleId":"D2","level":"warning","message":{"text":"GRU.fit (cognitive 20): GRU.fit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (4 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":"qlib/contrib/model/pytorch_gru.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ca944f3f71adee1054b710cc6f8b4c04fb62755c5ed93d1ebaf04e6837e758"}},{"ruleId":"D2","level":"warning","message":{"text":"expression_parser._mapping (cognitive 20): expression_parser._mapping has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (17 pts), 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":"qlib/data/expression_parser.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a32444442c1e7cc3ec94a14f04f8c2ad5028f365758195fa3affc6ba8e63e51"}},{"ruleId":"D2","level":"warning","message":{"text":"FiniteVectorEnv.reset (cognitive 20): FiniteVectorEnv.reset has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 6 (9 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":"qlib/rl/utils/finite_env.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"022e5c57050cccd299d9ab5740ae8e11037d8912c1f177eeb6e6c60d1adbd6f8"}},{"ruleId":"D2","level":"warning","message":{"text":"time.is_single_value (cognitive 20): time.is_single_value has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/time.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"720217599cb7f40ad0252ba7ce83730ad307c8a5574d193e8e3721a78c4be267"}},{"ruleId":"D2","level":"warning","message":{"text":"DNNModelPytorch.__init__ (cognitive 19): DNNModelPytorch.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_nn.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe7d56a03f9c9190e8442aa7745e027ec857eedb809998ac88073cf1010d4e5"}},{"ruleId":"D2","level":"warning","message":{"text":"expression_parser._validate (cognitive 19): expression_parser._validate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/expression_parser.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"402be382afe08e3c4ccf984a65336d56064273289d7a3a1f696f7b47db6afbb1"}},{"ruleId":"D2","level":"warning","message":{"text":"AdaRNN.forward_pre_train (cognitive 18): AdaRNN.forward_pre_train has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (10 pts), loops 3 (6 pts), if/else 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":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"273b2008693e7e1b373bd0b274949be28134331f8ea0b230167e30caeac5f352"}},{"ruleId":"D2","level":"warning","message":{"text":"TRAModel._fit (cognitive 18): TRAModel._fit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tra.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"241657fd0c440efa241abf7f5c658b0bc771720f318ee212899493281d2707b1"}},{"ruleId":"D2","level":"warning","message":{"text":"PPOReward.reward (cognitive 18): PPOReward.reward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 2 (6 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/reward.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"aedcdc773957294f1d57f3d12f413af58c772e107379dda96d9d8822ede8197e"}},{"ruleId":"D2","level":"warning","message":{"text":"Exchange.__init__ (cognitive 17): Exchange.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 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":"qlib/backtest/exchange.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebba68f1aa1e2cb8dd241ec5c1a948d743a906f59cd485ee4b5982d73307795"}},{"ruleId":"D2","level":"warning","message":{"text":"Indicator._agg_base_price (cognitive 17): Indicator._agg_base_price has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/report.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a14be1703f388f215b28a2e56bc6f1a4d5eee47cb06b2236589d1b3a6903a5"}},{"ruleId":"D2","level":"warning","message":{"text":"HIST.fit (cognitive 17): HIST.fit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_hist.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"866a6688b972370a9ea57fa513c94badd96b8d58839af59e38f21f34a1c81fd6"}},{"ruleId":"D2","level":"warning","message":{"text":"SoftTopkStrategy.generate_target_weight_position (cognitive 17): SoftTopkStrategy.generate_target_weight_position has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/cost_control.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e74df2bed8cc3e33388d3b2c1a2497932458f0fa87f04c09fba37c2ad52fe94"}},{"ruleId":"D2","level":"warning","message":{"text":"RiskModel.predict (cognitive 17): RiskModel.predict has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/riskmodel/base.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8ee02a6921817be664ef33c80e0f8455a4d11985b4f27798e75cef5eeaec41"}},{"ruleId":"D2","level":"warning","message":{"text":"FiniteVectorEnv.step (cognitive 17): FiniteVectorEnv.step has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 5 (8 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":"qlib/rl/utils/finite_env.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4a3ff698f2f85423fe72ff4f4e76260d2a95d875a700e096ff0208a7f445b1"}},{"ruleId":"D2","level":"warning","message":{"text":"utils._remove_field_space (cognitive 17): utils._remove_field_space has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (7 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/__init__.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"5351d2b9bac91139966f0b366da0860fdd4f0e848c7b79dd2b641b695675243e"}},{"ruleId":"D2","level":"warning","message":{"text":"mod.init_instance_by_config (cognitive 17): mod.init_instance_by_config has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (4 pts), error handling 1 (nesting depth added 9). 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":"qlib/utils/mod.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d724d41f57b2bbf8156aa3de0a8e0b8a31ab8a15b6459b7afbad1878642f94f3"}},{"ruleId":"D2","level":"warning","message":{"text":"PortAnaRecord._generate (cognitive 17): PortAnaRecord._generate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 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":"qlib/workflow/record_temp.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51971d651114e8344dc9a681539eef8a53a647fd35e077463b5f8e473783ac2"}},{"ruleId":"D2","level":"warning","message":{"text":"qlib.init (cognitive 16): qlib.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, 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":"qlib/__init__.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac49a9d04a77a23ffadff98aba1d8b2540a1478a0007124e7dc91fe184404abd"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneralPTNN.fit (cognitive 16): GeneralPTNN.fit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_general_nn.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e19fea486bb05bce04b010cec0b6cae5732e88b920114e4fdd360a03b5807f4"}},{"ruleId":"D2","level":"warning","message":{"text":"EnhancedIndexingOptimizer.__call__ (cognitive 16): EnhancedIndexingOptimizer.__call__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), error handling 2 (3 pts), boolean chains 2 (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":"qlib/contrib/strategy/optimizer/enhanced_indexing.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"efab68e3fa54967f1b24a4cf27bac11441f6050e2193d057ffdf42acc9763751"}},{"ruleId":"D2","level":"warning","message":{"text":"TWAPStrategy.generate_trade_decision (cognitive 16): TWAPStrategy.generate_trade_decision has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (3 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":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8fe7387f6ee5d8eb5269e8b1411a916bfcf0fc1f3ca3f4b980bf85e6791304"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleAssetOrderExecutionSimple.step (cognitive 16): SingleAssetOrderExecutionSimple.step has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 1 (3 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":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4145147cb513a191280fcdba58ff2d6425a0c53f20b21a4abad020269be910"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/cache.py: FileTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 196 over it, 1.39\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":"qlib/data/cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f6ffb819f523e7d3a8f3c79e93867f446be655fee707a976e912cd4f59845d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/pytorch_tra.py: FileTooLong \u2014 666 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 166 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tra.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca33e9014705aeba15140b5f2e0ccd6affaf1ba5de195c6c73b35e4542bd1c36"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/data.py: FileTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 165 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01cf7f57b16db16901c67ab3fff7bb9ed589ae0016f1971dff21865fc94c28a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/pytorch_adarnn.py: FileTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 135 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc4065d9bc34a0559662a0743c48b4e7240e906dd42d3012f912b1212ef68bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/ops.py: FileTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 119 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/ops.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5adc8704c36a2deb45a5ee39318b1e8f6fd703704cf4e784ad63106f1b0a058"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backtest/exchange.py: FileTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 52 over it, 1.10\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":"qlib/backtest/exchange.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d78993997450beadfdedbd088f446490938fb87b8303b2340d9dc4702fa631"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/__init__.py: FileTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 45 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b905415de876208ec581d45e9c485b7d897aaa39f70215d66db26ff515847ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 28 shared lines): qlib/contrib/model/pytorch_alstm.py:215-265 | qlib/contrib/model/pytorch_krnn.py:438-488 | qlib/contrib/model/pytorch_localformer.py:164-214 | qlib/contrib/model/pytorch_lstm.py:210-260 | qlib/contrib/model/pytorch_sandwich.py:308-358 | qlib/contrib/model/pytorch_sfm.py:366-414 | qlib/contrib/model/pytorch_tabnet.py:157-215 | qlib/contrib/model/pytorch_tcn.py:222-270 | qlib/contrib/model/pytorch_transformer.py:163-213 \u2014 These 9 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0efac1bd95622bcf062131b8cfdf34e4f3891c439c872630d6468549c7fb36f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 23 shared lines): qlib/contrib/model/pytorch_alstm.py:215-265 | qlib/contrib/model/pytorch_gats.py:230-299 | qlib/contrib/model/pytorch_krnn.py:438-488 | qlib/contrib/model/pytorch_localformer.py:164-214 | qlib/contrib/model/pytorch_lstm.py:210-260 | qlib/contrib/model/pytorch_sandwich.py:308-358 | qlib/contrib/model/pytorch_sfm.py:366-414 | qlib/contrib/model/pytorch_transformer.py:163-213 \u2014 These 8 members are variants of one another: a block of 23 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6af846b1740c928f51ff60f6b94fe83fb0521ff05537377018a405efbec4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 24 shared lines): qlib/contrib/model/pytorch_alstm_ts.py:213-285 | qlib/contrib/model/pytorch_gats_ts.py:239-313 | qlib/contrib/model/pytorch_gru_ts.py:207-279 | qlib/contrib/model/pytorch_localformer_ts.py:146-201 | qlib/contrib/model/pytorch_lstm_ts.py:202-274 | qlib/contrib/model/pytorch_transformer_ts.py:143-199 \u2014 These 6 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cfcee4a61a0fe608427ae8d0659c956c5fe01f324bc2ec9d9d877e3459cace"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 46 shared lines): qlib/contrib/model/pytorch_gru.py:58-130 | qlib/contrib/model/pytorch_krnn.py:261-343 | qlib/contrib/model/pytorch_lstm.py:57-126 | qlib/contrib/model/pytorch_sandwich.py:135-225 | qlib/contrib/model/pytorch_tcn.py:62-138 \u2014 These 5 members are variants of one another: a block of 46 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gru.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f080c3be3bb9c00be5960ef1efbbdd1bd4f4fd8e7d392eab925d96eb9932be39"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 11 shared lines): qlib/contrib/model/pytorch_alstm.py:182-207 | qlib/contrib/model/pytorch_gru.py:182-207 | qlib/contrib/model/pytorch_localformer.py:131-156 | qlib/contrib/model/pytorch_tcn.py:189-214 | qlib/contrib/model/pytorch_transformer.py:130-155 \u2014 These 5 members are variants of one another: a block of 11 lines reported below appears in every 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":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e5c454a3d92048b2254ab92e2add0488131d6544d67eccfda7145a2403e897"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 49 shared lines): qlib/contrib/model/pytorch_alstm_ts.py:62-137 | qlib/contrib/model/pytorch_gru_ts.py:60-135 | qlib/contrib/model/pytorch_lstm_ts.py:59-131 | qlib/contrib/model/pytorch_tcn_ts.py:60-139 \u2014 These 4 members are variants of one another: a block of 49 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e868047af07a51617d26b1c158565ddb43830058e5c7399a656b143b1cfd8475"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 37 shared lines): qlib/contrib/model/pytorch_alstm_ts.py:213-285 | qlib/contrib/model/pytorch_general_nn.py:242-332 | qlib/contrib/model/pytorch_gru_ts.py:207-279 | qlib/contrib/model/pytorch_lstm_ts.py:202-274 \u2014 These 4 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f62c035d4b229ab74666e725ffd64b08c5819be0f7daefe7aa8f8d7f29c027"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 35 shared lines): qlib/contrib/model/pytorch_localformer.py:164-214 | qlib/contrib/model/pytorch_localformer_ts.py:146-201 | qlib/contrib/model/pytorch_transformer.py:163-213 | qlib/contrib/model/pytorch_transformer_ts.py:143-199 \u2014 These 4 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d20427c420729f2b4c760b927baa512dfc71c98a4aff9f7b214fd9aebeaba7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_alstm.py:157-178 | qlib/contrib/model/pytorch_gru.py:157-178 | qlib/contrib/model/pytorch_krnn.py:382-402 | qlib/contrib/model/pytorch_krnn.py:406-430 | qlib/contrib/model/pytorch_localformer.py:106-127 | qlib/contrib/model/pytorch_lstm.py:153-174 | qlib/contrib/model/pytorch_lstm.py:178-202 | qlib/contrib/model/pytorch_sandwich.py:252-272 | qlib/contrib/model/pytorch_sandwich.py:276-300 | qlib/contrib/model/pytorch_sfm.py:310-334 | qlib/contrib/model/pytorch_sfm.py:337-358 | qlib/contrib/model/pytorch_tcn.py:165-186 | qlib/contrib/model/pytorch_tcts.py:135-209 | qlib/contrib/model/pytorch_tcts.py:213-233 | qlib/contrib/model/pytorch_transformer.py:105-126 \u2014 These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec37bdbc76b12635383ce19649181f8d453134d7d543e82981636d4035e58cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_adarnn.py:311-331 | qlib/contrib/model/pytorch_alstm.py:268-291 | qlib/contrib/model/pytorch_gru.py:293-316 | qlib/contrib/model/pytorch_krnn.py:491-511 | qlib/contrib/model/pytorch_localformer.py:217-240 | qlib/contrib/model/pytorch_lstm.py:263-283 | qlib/contrib/model/pytorch_sandwich.py:361-381 | qlib/contrib/model/pytorch_sfm.py:437-460 | qlib/contrib/model/pytorch_tcn.py:273-296 | qlib/contrib/model/pytorch_tcts.py:352-378 | qlib/contrib/model/pytorch_transformer.py:216-239 \u2014 These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99102e8765db363bf15d15a24f9c750ace2fee71d9c3d1406fd96ed8f493203"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_add.py:250-276 | qlib/contrib/model/pytorch_add.py:420-439 | qlib/contrib/model/pytorch_gats.py:199-222 | qlib/contrib/model/pytorch_gats.py:302-323 | qlib/contrib/model/pytorch_hist.py:250-276 | qlib/contrib/model/pytorch_hist.py:370-405 | qlib/contrib/model/pytorch_igmtf.py:224-246 | qlib/contrib/model/pytorch_igmtf.py:328-354 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_add.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"328570a52a97af89be6fd6a7a1da403b87e7dff1b294e8fb172139933c94c855"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_add.py:229-237 | qlib/contrib/model/pytorch_gats.py:166-174 | qlib/contrib/model/pytorch_gats_ts.py:186-194 | qlib/contrib/model/pytorch_hist.py:214-222 | qlib/contrib/model/pytorch_igmtf.py:173-181 | qlib/contrib/model/pytorch_krnn.py:371-379 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_add.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de3dd5844f24592e4e391020d58ebc558426d30a1791d35e3cbd2b1c01af791"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_add.py:529-550 | qlib/contrib/model/pytorch_gats.py:328-357 | qlib/contrib/model/pytorch_gats_ts.py:340-369 | qlib/contrib/model/pytorch_hist.py:410-465 | qlib/contrib/model/pytorch_igmtf.py:359-389 \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":"qlib/contrib/model/pytorch_add.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"354f7a7f9d23b7b1bd9b5195b4c87ea0cedf5e43da37b26b3f3457c2cd591f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_gru_ts.py:282-299 | qlib/contrib/model/pytorch_localformer_ts.py:204-221 | qlib/contrib/model/pytorch_lstm_ts.py:277-294 | qlib/contrib/model/pytorch_tcn_ts.py:267-284 | qlib/contrib/model/pytorch_transformer_ts.py:202-219 \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":"qlib/contrib/model/pytorch_gru_ts.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"870ec4f6aa65144a4ec798e0af90476fc8de650359e854ebccdebd67a0b3e265"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_localformer.py:245-252 | qlib/contrib/model/pytorch_localformer_ts.py:226-233 | qlib/contrib/model/pytorch_tra.py:597-606 | qlib/contrib/model/pytorch_transformer.py:244-251 | qlib/contrib/model/pytorch_transformer_ts.py:224-231 \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":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1fc6ca376ff0c4c0bb06c3851080e0e23165e625a0a41287e0560af4cfabe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_alstm_ts.py:186-204 | qlib/contrib/model/pytorch_general_nn.py:217-233 | qlib/contrib/model/pytorch_gru_ts.py:180-198 | qlib/contrib/model/pytorch_lstm_ts.py:176-193 \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":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bb15d052e6e66af5582ed7590673b9ab7b440b6cc935ee445121445cb00d1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_gats_ts.py:213-231 | qlib/contrib/model/pytorch_localformer_ts.py:121-138 | qlib/contrib/model/pytorch_tcn_ts.py:182-201 | qlib/contrib/model/pytorch_transformer_ts.py:118-135 \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":"qlib/contrib/model/pytorch_gats_ts.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"721f7b5cfb4a176b5052d8740b5142752d780c219e8be67f1f883638ce1031e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): qlib/contrib/model/pytorch_localformer.py:50-79 | qlib/contrib/model/pytorch_localformer_ts.py:48-79 | qlib/contrib/model/pytorch_transformer.py:49-78 | qlib/contrib/model/pytorch_transformer_ts.py:47-76 \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":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be8abf00d7c7273ca8ce2c0f337beaec2bb42b385cb98cdb6e563537db71d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): qlib/contrib/model/pytorch_hist.py:284-367 | qlib/contrib/model/pytorch_igmtf.py:254-325 \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":"qlib/contrib/model/pytorch_hist.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a8445089ff871f901b80a39f1a96745e02b6f4c51351cb104460e8a49c6ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 77\u002B corresponding lines): qlib/contrib/model/pytorch_add.py:69-161 | qlib/contrib/model/pytorch_hist.py:99-178 | qlib/contrib/model/pytorch_igmtf.py:61-137 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 77 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":"qlib/contrib/model/pytorch_add.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9295a5a284558f9334f8f63104206753dabb978a5ad19e75bda471c0873ad94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): qlib/contrib/data/highfreq_provider.py:254-294 | qlib/contrib/data/highfreq_provider.py:297-339 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/highfreq_provider.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acb25c02caa31606d8c8d436a21e4efb39feeb18fa4dd4642fb79793c99929d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): qlib/contrib/model/catboost_model.py:38-78 | qlib/contrib/model/xgboost.py:33-69 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/catboost_model.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"3488c1ede451bceea43ada2983881ede0b82cfb0762d43181c3908c176336ebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): examples/highfreq/highfreq_handler.py:39-101 | qlib/contrib/data/highfreq_handler.py:42-100 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/highfreq/highfreq_handler.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecb04c6b5e329d318bd9277e6a2b18e2f9038a035b2777cd3c113cbb4035605"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): qlib/contrib/model/pytorch_tabnet.py:300-326 | qlib/contrib/model/pytorch_tabnet.py:329-357 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tabnet.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce89b378f3747722f22427b1f99a24ee7a4fd85aa41da73807d8ef6cd39c20b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): qlib/contrib/model/pytorch_tabnet.py:247-272 | qlib/contrib/model/pytorch_tabnet.py:275-297 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tabnet.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e990059ab4ef8326adf0e52c18e78e563fcf90fad07f20a6bbd364ac4ac9e401"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): qlib/data/cache.py:698-747 | qlib/data/cache.py:752-791 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f9a3fc6527ea3a3dc798af46dd6dea77ec72967de7eea60971727d0f967c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): qlib/rl/order_execution/simulator_simple.py:304-327 | qlib/rl/order_execution/strategy.py:258-282 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4946fadfbf1e31c5671b1f44e11d16cfe09d94684a6b9c3cc064ff685fc3bc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): qlib/contrib/online/operator.py:139-170 | qlib/contrib/online/operator.py:173-211 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/online/operator.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"481d1c2639732c81a637c876958ae72d22bb4c4a20ad5c68e26003c40950d0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): qlib/contrib/model/pytorch_gats.py:177-195 | qlib/contrib/model/pytorch_hist.py:225-246 | qlib/contrib/model/pytorch_igmtf.py:203-220 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec575b154b3a2b5442fb2426bf47c7116f4865516e879a6e6ef72eaea0698916"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): qlib/contrib/model/pytorch_alstm_ts.py:288-305 | qlib/contrib/model/pytorch_gats_ts.py:316-335 \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":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"90830f597e878d2e284d63d797ab0ba8d501f89d233b62b6c21e410b9dab6337"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): qlib/workflow/online/manager.py:157-182 | qlib/workflow/online/manager.py:191-228 \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":"qlib/workflow/online/manager.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"045acef2c71318fc744b700b0b03db1100a8aaf284dbe77e62ce136f7e42f904"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): qlib/contrib/strategy/rule_strategy.py:339-351 | qlib/contrib/strategy/rule_strategy.py:424-438 \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":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"4474798511de0b823b005c30bc80524d5b43867eb5fa7767f5ff69ec5ca1fa84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): qlib/backtest/report.py:555-568 | qlib/backtest/report.py:571-582 \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":"qlib/backtest/report.py"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"d477a7d775f21dc5562c7ed9da722d8628b6f29c210f54405bbc2153229481ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): qlib/contrib/model/pytorch_gats_ts.py:197-210 | qlib/contrib/model/pytorch_tcn_ts.py:166-179 \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":"qlib/contrib/model/pytorch_gats_ts.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40c5b66580b46c12d331bfb713344515a207b147e31481dec728c5c13cfa241"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): qlib/data/dataset/processor.py:205-218 | qlib/data/dataset/processor.py:239-252 \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":"qlib/data/dataset/processor.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"9413011835fbd0fd17a8f3591ff77291a28a2ef314046549962299990918590b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): qlib/data/ops.py:1119-1130 | qlib/data/ops.py:1334-1346 \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":"qlib/data/ops.py"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"027ad0d4fcb986f40fc9f78660337d1ebd11e3d5fa4d2880632b87e268850b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): qlib/contrib/model/pytorch_alstm_ts.py:171-183 | qlib/contrib/model/pytorch_general_nn.py:203-214 | qlib/contrib/model/pytorch_gru_ts.py:165-177 | qlib/contrib/model/pytorch_lstm_ts.py:161-173 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"584c1ed2a4b12160786b985387b2eaf92d119fdb948d17597a87e7e32a362f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): qlib/data/ops.py:991-996 | qlib/data/ops.py:1039-1044 \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":"qlib/data/ops.py"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c9cadb1e29f7ed8f59e2b4f2237d78312829333029cfacf3a4cb1db5d04620"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): qlib/utils/index_data.py:475-486 | qlib/utils/index_data.py:489-500 \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":"qlib/utils/index_data.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f022b1421dbd658748db8cb07e340ef3d221f68575fa3346758099c4057da0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): qlib/rl/utils/log.py:354-368 | qlib/rl/utils/log.py:493-504 \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":"qlib/rl/utils/log.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"856770883ddf8bc09ea73751f1223236a9dcf0d5e528539eb2c835d909fa8de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): qlib/contrib/model/pytorch_alstm.py:335-344 | qlib/contrib/model/pytorch_alstm_ts.py:348-355 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc5bb24262207f5d493a48a4dfc1880c42a2bc89931ec4e47419eb33d2c5110"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): qlib/workflow/exp.py:318-323 | qlib/workflow/expm.py:399-403 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/exp.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daa739895467bd39f4f22ac6364c1be166e52bca3344da1a829358f764e1723"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): qlib/contrib/ops/high_freq.py:14-36 | qlib/contrib/ops/high_freq.py:40-47 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/ops/high_freq.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"25588288523af5e0111d75e8ab58d543fb1ae097ad4c629dd5ba0edbe2170d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): qlib/rl/order_execution/simulator_simple.py:232-244 | qlib/rl/order_execution/strategy.py:286-298 \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":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e3343d98acf2b24624b33d003a1cfefb5b02b335406106f6ca7221f4062e1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): qlib/data/ops.py:1249-1254 | qlib/data/ops.py:1306-1311 \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":"qlib/data/ops.py"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7a9881686e8af227ab2e34a0a78c18e32982b1315d2f630e07efb757ae3044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): qlib/workflow/exp.py:326-338 | qlib/workflow/expm.py:406-420 \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":"qlib/workflow/exp.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"0974057f23e1a28beb7aa43234d3386a72f8916d4ebd3d01272dd9646f9f0bbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): qlib/contrib/model/pytorch_gru.py:336-339 | qlib/contrib/model/pytorch_lstm.py:303-306 | qlib/contrib/model/pytorch_tcts.py:421-424 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"qlib/contrib/model/pytorch_gru.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd89625b2a9d44c9909c2b579ebbe14a39158febee7c8a418da229df6faccc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): qlib/contrib/model/pytorch_adarnn.py:774-780 | qlib/contrib/model/pytorch_adarnn.py:784-790 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5eaf654cf786a3e3b0dff8e7dd3a593148bd0138ac9fa4ebbb17dec12e96c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): qlib/data/dataset/processor.py:83-91 | qlib/data/dataset/handler.py:154-171 \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":"qlib/data/dataset/processor.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8ddb212ddd5435a10df781480468b1abfcc06498b29230b26c552c937a2a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): qlib/data/ops.py:255-264 | qlib/data/ops.py:1436-1447 \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":"qlib/data/ops.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2153805728ff7cb7b44f797a8955e9ec902760eb846f17f555cac16e81d84f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): examples/rolling_process_data/rolling_handler.py:17-32 | qlib/contrib/data/handler.py:114-138 | qlib/contrib/data/highfreq_handler.py:119-142 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"examples/rolling_process_data/rolling_handler.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a15cccf44218d6f5c91e7535d1befd348e756255c0c3a9b50f934871db67423"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): examples/highfreq/highfreq_ops.py:162-167 | qlib/contrib/ops/high_freq.py:272-277 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/highfreq/highfreq_ops.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af0fa9e050e84f0a64638676a4e09fd04b24b4be345dd7d08be44ba023220c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): qlib/contrib/model/catboost_model.py:81-84 | qlib/contrib/model/gbdt.py:94-97 | qlib/contrib/model/highfreq_gdbt_model.py:142-145 | qlib/contrib/model/xgboost.py:72-75 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/catboost_model.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6444c327d5a572daa0305620418b6785326532f62ec91573bd95b9ca6870e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): qlib/contrib/model/pytorch_localformer.py:267-270 | qlib/contrib/model/pytorch_localformer_ts.py:248-251 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ade25409e75c5ce509acfd5dab0a9ccfeef432f4519b6fa08e0dcf8d326e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/highfreq/highfreq_ops.py:26-28 | qlib/contrib/ops/high_freq.py:117-119 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/highfreq/highfreq_ops.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f119c779d14f69758474263e5fb43c8b4c4ab8793d66f078503fedda5ba19ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): qlib/contrib/model/pytorch_tcn.py:301-304 | qlib/contrib/model/pytorch_tcn_ts.py:289-292 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tcn.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"be328adfdbbe10bfe1b26097bb811627f4139b3eb4cb8f535770fb464123ca15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/highfreq/highfreq_ops.py:84-86 | qlib/contrib/ops/high_freq.py:175-177 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/highfreq/highfreq_ops.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8e22ab679db4d906f1d7d5be899d8b4d97adac3001aed38c72d0526a38ac86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): qlib/rl/data/native.py:177-178 | qlib/rl/data/pickle_styled.py:201-202 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/data/native.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0f15a7fc508f1c0e6444bdb81b551dfa32f4d28db8b71f53347654f647556b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): qlib/contrib/model/pytorch_adarnn.py:238-240 | qlib/contrib/model/pytorch_add.py:305-307 \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":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"301c2c99531c18cdbf79989ea992f924b93d15687b412a89905e90f104ff3961"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/highfreq/highfreq_ops.py:107-109 | qlib/contrib/ops/high_freq.py:198-200 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/highfreq/highfreq_ops.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"59786926b62ffb0fbc96d08e76d801d270a6634ca335f3959c7d41582e2a346f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): qlib/contrib/model/gbdt.py:20-26 | qlib/contrib/model/highfreq_gdbt_model.py:19-23 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/gbdt.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cf0a6e239cd20491ff3809a6f9c9e77b788e7d0fa9ac76cd5a6c629cfd18e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): qlib/contrib/model/pytorch_krnn.py:219-222 | qlib/contrib/model/pytorch_sandwich.py:90-94 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_krnn.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb4a65de713dcdac08d9a6d3be2981f4754a38848c3513e451f8c2a60d82e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): qlib/rl/data/native.py:96-97 | qlib/rl/data/pickle_styled.py:122-123 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/data/native.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6108cedc74ea7a3a3a87e19c69a46968ec01971ed505362fecd8b939d69f1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): qlib/rl/order_execution/simulator_simple.py:337-339 | qlib/rl/order_execution/utils.py:18-22 \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":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d27d2584bb428a392c321463c35a5648da6432b66571f3ef52116e0cdbd96d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 3): qlib/contrib/model/pytorch_alstm_ts.py:214-258 | qlib/contrib/model/pytorch_gru_ts.py:208-252 | qlib/contrib/model/pytorch_lstm_ts.py:203-247 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gru_ts.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8ad6fe6ed77e4f27080ef46af18ece64825f7c4acb04fc73161d0f203fcb7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 3): qlib/contrib/model/pytorch_alstm_ts.py:78-117 | qlib/contrib/model/pytorch_gru_ts.py:76-115 | qlib/contrib/model/pytorch_lstm_ts.py:75-114 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gru_ts.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"259f652395e5aaa78e4529dff13ebf7fa32e70fcecd7b0fc3506406c079aba62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): qlib/contrib/model/pytorch_gats_ts.py:99-138 | qlib/contrib/model/pytorch_igmtf.py:78-117 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_igmtf.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats_ts.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94d0c889479523fa37042682587dba428552bf94e7fb7ae56c68fd740bc38da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 3): qlib/contrib/model/pytorch_adarnn.py:85-121 | qlib/contrib/model/pytorch_gru.py:74-110 | qlib/contrib/model/pytorch_lstm.py:73-109 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_adarnn.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Model\u0060 names \u0060...model.base\u0060 in one and \u0060qlib.model.base\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":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a01bcb715c112df3cba49846775de1d388d1b14e4a0ad9b666c0190de442a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): qlib/contrib/model/pytorch_gats.py:73-109 | qlib/contrib/model/pytorch_igmtf.py:72-108 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_igmtf.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_gats.py:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b206f78856caef4f58b8911fdfc1abcac7b2c92b80a803282fba1d47adb67b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): qlib/contrib/model/pytorch_krnn.py:279-314 | qlib/contrib/model/pytorch_sfm.py:236-271 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_krnn.py\u0060 and \u0060qlib/contrib/model/pytorch_sfm.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_krnn.py:279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_krnn.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe6c63a42d86287b2c255637b9d27937315b2fab6abaced599d60ec4fc58ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): qlib/contrib/model/pytorch_adarnn.py:85-113 | qlib/contrib/model/pytorch_alstm.py:74-102 | qlib/contrib/model/pytorch_gru.py:74-102 | qlib/contrib/model/pytorch_lstm.py:73-101 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_adarnn.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_adarnn.py:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Model\u0060 names \u0060...model.base\u0060 in one and \u0060qlib.model.base\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":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce01fc257111b2f8f13c55cdc79b8967d676af4163a77ab523a3c91b3eec0a84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): qlib/contrib/model/pytorch_alstm_ts.py:78-105 | qlib/contrib/model/pytorch_gats_ts.py:98-125 | qlib/contrib/model/pytorch_gru_ts.py:76-103 | qlib/contrib/model/pytorch_lstm_ts.py:75-102 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm_ts.py:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0934105efb3ae12cb1fc3eaeae74af98513828d00ee58aaae77a7bf69c8d8b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): qlib/contrib/model/pytorch_gats.py:78-105 | qlib/contrib/model/pytorch_igmtf.py:77-104 | qlib/contrib/model/pytorch_tcn.py:78-105 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_igmtf.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_gats.py:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0a09a5890b4f794516474af0e817291e612358af0fcaaf8b57e57a4cb3b91e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): qlib/contrib/model/pytorch_gats.py:111-138 | qlib/contrib/model/pytorch_gats_ts.py:131-158 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_gats.py:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92acf7686bbcdca04f13948fcd509764cc69d7c000d1975654cf6fb0e734d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): qlib/contrib/model/pytorch_alstm.py:104-130 | qlib/contrib/model/pytorch_alstm_ts.py:111-137 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm.py:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"30bf2f06c548c83757544c321d4de5a9086b8d3f0e0826c625828691a3c98c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): qlib/contrib/model/pytorch_alstm.py:305-331 | qlib/contrib/model/pytorch_alstm_ts.py:319-345 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060qlib/contrib/model/pytorch_alstm.py:335\u0060 calls \u0060view\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py:348\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"c875871032d6e5fddbcc181416de14747287b6e595e485cda013c8dec052f25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): qlib/contrib/data/highfreq_handler.py:222-247 | qlib/contrib/data/highfreq_handler.py:485-510 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/highfreq_handler.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df4a9e1f4896aa6ef87be16f65d0ad8c07f87944d2b0da565590030e30d87f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 3): qlib/contrib/model/pytorch_localformer_ts.py:151-174 | qlib/contrib/model/pytorch_tcn_ts.py:213-237 | qlib/contrib/model/pytorch_transformer_ts.py:149-172 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_tcn_ts.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_localformer_ts.py:149\u0060 calls \u0060ValueError\u0060 and \u0060qlib/contrib/model/pytorch_tcn_ts.py:210\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer_ts.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de2710ed08506d8d01129368ffce6b8ae8a3b1c64f4ae0008291f720f53482f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 4): qlib/contrib/model/pytorch_localformer.py:50-79 | qlib/contrib/model/pytorch_localformer_ts.py:48-79 | qlib/contrib/model/pytorch_transformer.py:49-78 | qlib/contrib/model/pytorch_transformer_ts.py:47-76 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e57aa2af804e1b5fcc0763279787ae995664b8ed02891415c77458d5113faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): qlib/contrib/model/pytorch_gats.py:334-357 | qlib/contrib/model/pytorch_gats_ts.py:346-369 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_gats.py:334\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a66600b25c0c50d6ec92128bf6d7e64f9e7127d702b7adf651b9f82db0283e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): qlib/contrib/model/pytorch_localformer.py:217-240 | qlib/contrib/model/pytorch_transformer.py:216-239 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_transformer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2b05d93cfd3fe7136242faa7a06c8b0b64594673c1810a78fb4b79e3c4da2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): qlib/contrib/model/pytorch_alstm_ts.py:72-94 | qlib/contrib/model/pytorch_gru_ts.py:70-92 | qlib/contrib/model/pytorch_lstm_ts.py:69-91 | qlib/contrib/model/pytorch_tcn_ts.py:71-93 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gru_ts.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm_ts.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cba4b5839b9b25e9a45ed08af9616c639b36f37c6f4053805ae129d13e24c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201322 lines \u00D7 3): qlib/contrib/data/loader.py:201-216 | qlib/contrib/data/loader.py:236-253 | qlib/contrib/data/loader.py:274-295 \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 \u0060qlib/contrib/data/loader.py:236\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/data/loader.py:198\u0060 calls \u0060use\u0060 and \u0060qlib/contrib/data/loader.py:235\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/loader.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"929a96274df36a7dd144294a056bc8decf6e20d61f21ba6daf147612c580895c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 3): qlib/contrib/model/pytorch_krnn.py:279-299 | qlib/contrib/model/pytorch_sandwich.py:155-176 | qlib/contrib/model/pytorch_sfm.py:236-256 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_krnn.py\u0060 and \u0060qlib/contrib/model/pytorch_sandwich.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 242 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_krnn.py:279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_krnn.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1418d0040fba2ede0c50688ee7984ad9a1b0f98d47cd927727019a01b7cc058"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201322 lines \u00D7 3): qlib/contrib/data/highfreq_provider.py:243-246 | qlib/contrib/data/highfreq_provider.py:254-275 | qlib/contrib/data/highfreq_provider.py:297-318 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/highfreq_provider.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"745a3dbec65a741bdde65a832727ced0d11d57e4ccaedaa2f188579bc2b7c189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): qlib/contrib/model/pytorch_gats.py:253-274 | qlib/contrib/model/pytorch_gats_ts.py:267-288 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_gats.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":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6497728d3b3035e8d934e5dab6d09496050ffb211beb588ec9936a6dee17ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): qlib/contrib/model/pytorch_krnn.py:301-322 | qlib/contrib/model/pytorch_sandwich.py:181-202 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_krnn.py\u0060 and \u0060qlib/contrib/model/pytorch_sandwich.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 242 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_krnn.py:301\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_krnn.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7709281c59ee265c4b39cb82601814b05a9935242c45fd4469469053fe0545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 7): qlib/contrib/model/pytorch_alstm.py:71-90 | qlib/contrib/model/pytorch_gru.py:71-90 | qlib/contrib/model/pytorch_krnn.py:277-297 | qlib/contrib/model/pytorch_lstm.py:70-89 | qlib/contrib/model/pytorch_sandwich.py:153-173 | qlib/contrib/model/pytorch_sfm.py:234-254 | qlib/contrib/model/pytorch_tcn.py:76-96 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm.py:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f5f1883b4d4340829f9b268b28dfdaebe7c95742d63cdb6172d47b6e3b4268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 5): qlib/contrib/model/pytorch_alstm_ts.py:77-96 | qlib/contrib/model/pytorch_gats_ts.py:97-116 | qlib/contrib/model/pytorch_gru_ts.py:75-94 | qlib/contrib/model/pytorch_lstm_ts.py:74-93 | qlib/contrib/model/pytorch_tcn_ts.py:76-96 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm_ts.py:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"624a25aa6ab4d8d8f760b40804dcaff2d9a7f9cba72b84058c586e5373767cb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): qlib/contrib/model/pytorch_alstm_ts.py:98-118 | qlib/contrib/model/pytorch_gru_ts.py:96-116 | qlib/contrib/model/pytorch_lstm_ts.py:95-115 | qlib/contrib/model/pytorch_tcn_ts.py:99-119 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gru_ts.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm_ts.py:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aafdf2ab943c354f6785cca2695f48986a20e2f8e41009128636dc08ee60d87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): qlib/contrib/model/pytorch_alstm.py:245-265 | qlib/contrib/model/pytorch_alstm_ts.py:265-285 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8715e78fa7d3a4f4e912bae6fb84eca7deea40dbb351e19fcc459c4af75533b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): qlib/contrib/model/pytorch_gats.py:279-299 | qlib/contrib/model/pytorch_gats_ts.py:293-313 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbb1a37a09fc0f609a095e3ce100db853bb5f1cd0125457102761748021f4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): qlib/contrib/model/pytorch_adarnn.py:103-122 | qlib/contrib/model/pytorch_gru.py:92-111 | qlib/contrib/model/pytorch_krnn.py:304-323 | qlib/contrib/model/pytorch_lstm.py:91-110 | qlib/contrib/model/pytorch_sandwich.py:184-203 | qlib/contrib/model/pytorch_tcn.py:99-118 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_adarnn.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_adarnn.py:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Model\u0060 names \u0060...model.base\u0060 in one and \u0060qlib.model.base\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":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d647896172b48edb37ae251c52e08ad621fc459c3dcfd0ae557db7c8e69b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 5): qlib/contrib/model/pytorch_adarnn.py:283-301 | qlib/contrib/model/pytorch_localformer.py:195-214 | qlib/contrib/model/pytorch_localformer_ts.py:182-201 | qlib/contrib/model/pytorch_transformer.py:194-213 | qlib/contrib/model/pytorch_transformer_ts.py:180-199 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea3d3dde5ccdebbd696e02809fc328050f408cc74ee13d65c9f1e57746f33eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): qlib/contrib/model/pytorch_alstm.py:92-111 | qlib/contrib/model/pytorch_sfm.py:261-280 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_sfm.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm.py:92\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f6a0302057564a8550ffc01a5a0ac267e5aa9173c880c50d09fd5ff684f83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): qlib/contrib/model/pytorch_add.py:531-548 | qlib/contrib/model/pytorch_gats.py:330-347 | qlib/contrib/model/pytorch_gats_ts.py:342-359 | qlib/contrib/model/pytorch_hist.py:415-432 | qlib/contrib/model/pytorch_igmtf.py:361-378 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_add.py\u0060 and \u0060qlib/contrib/model/pytorch_gats.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_add.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a73188774ce283f29ae7eea58a74ec5a641edacf8503307ccbd973e050a02fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): qlib/contrib/data/highfreq_handler.py:45-62 | qlib/contrib/data/highfreq_handler.py:347-364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/highfreq_handler.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c113b83c9aa3ae5574764085481d4d9a4d7726a2a4c27085f4d1f096c48156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): qlib/contrib/model/pytorch_localformer_ts.py:205-221 | qlib/contrib/model/pytorch_transformer_ts.py:203-219 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_transformer_ts.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer_ts.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"875f8a1773d2bf3c327d1e071aa0c9e1bd8f7c4ea2d679a0dbdb46e150f2543c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): qlib/contrib/model/pytorch_alstm_ts.py:243-258 | qlib/contrib/model/pytorch_gru_ts.py:237-252 | qlib/contrib/model/pytorch_localformer_ts.py:159-174 | qlib/contrib/model/pytorch_lstm_ts.py:232-247 | qlib/contrib/model/pytorch_tcn_ts.py:222-237 | qlib/contrib/model/pytorch_transformer_ts.py:157-172 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gru_ts.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm_ts.py:243\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e768635c4ef56c2773dc1de2ec514b01c08a35a9c2b8a009302de86717eca51e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): qlib/contrib/model/pytorch_gats.py:62-77 | qlib/contrib/model/pytorch_gats_ts.py:81-96 | qlib/contrib/model/pytorch_hist.py:99-114 | qlib/contrib/model/pytorch_igmtf.py:61-76 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc67715b3c9a0cf7887a3298f18a0f0205d7c6773d62baff78332b6d846b7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): qlib/contrib/data/highfreq_handler.py:60-74 | qlib/contrib/data/highfreq_handler.py:380-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/data/highfreq_handler.py:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/highfreq_handler.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a789e284f0a83cb7ce3a8dc8ed623af8236ab01882fc9f32bf27fcad1b9dec10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): qlib/contrib/model/pytorch_localformer.py:307-322 | qlib/contrib/model/pytorch_localformer_ts.py:287-302 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_localformer.py:306\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py:285\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"40664fd4c65ef16c909ac2f660c54f73e58e5b4acc1137e84b4d1301b3065988"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): qlib/contrib/model/pytorch_localformer_ts.py:121-136 | qlib/contrib/model/pytorch_transformer_ts.py:118-133 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_transformer_ts.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer_ts.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"df15a5f1631cf205ca66b0c637f806eabd196cb54c1b64e50fd80e34a120ae03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): qlib/contrib/model/pytorch_tcn.py:62-77 | qlib/contrib/model/pytorch_tcn_ts.py:60-75 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_tcn.py\u0060 and \u0060qlib/contrib/model/pytorch_tcn_ts.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tcn.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e821e72fd65c0cc516a6ebf7773d69ff561bf0eb324cf5ef0c14e01f4e6acbf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): qlib/contrib/online/operator.py:116-131 | qlib/contrib/online/operator.py:254-267 \u2014 both copies are in the same file, so extract the block 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 \u0060qlib/contrib/online/operator.py:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/online/operator.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"506f969d6a21e97733b8c0370320cd66086ef2deaff134a2bdcd692115d79d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): qlib/data/cache.py:704-719 | qlib/data/cache.py:760-774 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"777a45a742bdb8dc6308b7f5edd8cab0a7546d4c9e18cb451484362060bdedb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): qlib/rl/order_execution/simulator_simple.py:347-362 | qlib/rl/order_execution/utils.py:30-45 \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":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4613a81ca72c5921773713f17ba42d2f29d638fbbace9992735edcda6f9914a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 9): qlib/contrib/model/pytorch_alstm.py:224-238 | qlib/contrib/model/pytorch_krnn.py:447-461 | qlib/contrib/model/pytorch_localformer.py:173-187 | qlib/contrib/model/pytorch_lstm.py:219-233 | qlib/contrib/model/pytorch_sandwich.py:317-331 | qlib/contrib/model/pytorch_sfm.py:374-388 | qlib/contrib/model/pytorch_tabnet.py:175-188 | qlib/contrib/model/pytorch_tcn.py:229-243 | qlib/contrib/model/pytorch_transformer.py:172-186 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_krnn.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_tabnet.py:173\u0060 calls \u0060fillna\u0060, \u0060mean\u0060 and \u0060qlib/contrib/model/pytorch_alstm.py:221\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"228220fbb381177d1c66f8e64771765d367350a33c7a40e9a8828b390b037cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): qlib/contrib/model/pytorch_alstm.py:58-72 | qlib/contrib/model/pytorch_alstm_ts.py:62-76 | qlib/contrib/model/pytorch_gru.py:58-72 | qlib/contrib/model/pytorch_gru_ts.py:60-74 | qlib/contrib/model/pytorch_lstm.py:57-71 | qlib/contrib/model/pytorch_lstm_ts.py:59-73 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b77f821d46ced5429961d51763db33694ee86f1a636be030314c5dbde03c0a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 3): qlib/contrib/data/loader.py:149-162 | qlib/contrib/data/loader.py:220-229 | qlib/contrib/data/loader.py:264-278 \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 \u0060qlib/contrib/data/loader.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/loader.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"179b416505ca73854f58b4b73b7d354e8536d9c26365430810cf9ab715345050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): qlib/contrib/model/pytorch_gats.py:242-256 | qlib/contrib/model/pytorch_hist.py:312-326 | qlib/contrib/model/pytorch_igmtf.py:267-281 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_hist.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f7205b43edb626b2d727a946cd16f82f447f9cb2ff8e0889b2b3d66fb12b00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): qlib/contrib/model/catboost_model.py:45-57 | qlib/contrib/model/xgboost.py:37-51 \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 \u0060qlib/contrib/model/xgboost.py:37\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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, \u0060qlib/contrib/model/catboost_model.py:44\u0060 calls \u0060ValueError\u0060 and \u0060qlib/contrib/model/xgboost.py:37\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/catboost_model.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbdc38583323e69cd962960c60d851dc5dc87f638c984338ace48c2fe4bfbb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): qlib/contrib/model/pytorch_localformer.py:288-302 | qlib/contrib/model/pytorch_localformer_ts.py:269-283 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060qlib/contrib/model/pytorch_localformer.py:306\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py:287\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2176cc3ed16daee4deffa0212d9e069a77180340396383590e443cce91f8ac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): qlib/contrib/model/pytorch_tra.py:217-231 | qlib/contrib/model/pytorch_tra.py:298-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_tra.py:217\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tra.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"555ff72590f7398f35c6499c287f2d2a83651405736afa8a909f458f41f6a3f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 8): qlib/contrib/model/pytorch_alstm.py:218-231 | qlib/contrib/model/pytorch_igmtf.py:257-270 | qlib/contrib/model/pytorch_krnn.py:441-454 | qlib/contrib/model/pytorch_localformer.py:167-180 | qlib/contrib/model/pytorch_lstm.py:213-226 | qlib/contrib/model/pytorch_sandwich.py:311-324 | qlib/contrib/model/pytorch_sfm.py:369-381 | qlib/contrib/model/pytorch_transformer.py:166-179 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_igmtf.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm.py:218\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00f7299bb69fc261a56dc18efa27e09ca057373243f59f10650b8a1f115d38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): qlib/contrib/model/pytorch_alstm_ts.py:230-243 | qlib/contrib/model/pytorch_general_nn.py:269-282 | qlib/contrib/model/pytorch_gru_ts.py:224-237 | qlib/contrib/model/pytorch_lstm_ts.py:219-232 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_general_nn.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Reweighter\u0060 names \u0060...data.dataset.weight\u0060 in one and \u0060qlib.data.dataset.weight\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":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6b5eba0261a8980bacd6dc8e7be47756e536d7012d46c44e1e3f33c919d04d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): qlib/contrib/data/highfreq_provider.py:159-172 | qlib/contrib/data/highfreq_provider.py:202-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":"qlib/contrib/data/highfreq_provider.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23c622f78953ebc20c583db2443d3cb6611aac6888bb8e72816203b52187324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): qlib/contrib/model/pytorch_transformer.py:272-285 | qlib/contrib/model/pytorch_transformer_ts.py:251-264 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_transformer.py\u0060 and \u0060qlib/contrib/model/pytorch_transformer_ts.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_transformer.py:271\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_transformer_ts.py:249\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_transformer.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"91dae0b4bca8f25693ad45635b3f726c0bcd419d741cafe828b1d6070d8d552d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): qlib/contrib/strategy/rule_strategy.py:159-172 | qlib/contrib/strategy/rule_strategy.py:463-475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb27f27cc11595588272f65d88a6cefad7a4384f47db31c1bca4f9cc8b76468d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): qlib/contrib/strategy/rule_strategy.py:209-222 | qlib/contrib/strategy/rule_strategy.py:521-532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/strategy/rule_strategy.py:209\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79b8903ec92c3c0e8ae2e6e82ea087cbe1afa88ec21e0f7f672197a19531fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 15): qlib/contrib/model/pytorch_alstm.py:226-238 | qlib/contrib/model/pytorch_alstm_ts.py:245-258 | qlib/contrib/model/pytorch_gru_ts.py:239-252 | qlib/contrib/model/pytorch_krnn.py:449-461 | qlib/contrib/model/pytorch_localformer.py:175-187 | qlib/contrib/model/pytorch_localformer_ts.py:161-174 | qlib/contrib/model/pytorch_lstm.py:221-233 | qlib/contrib/model/pytorch_lstm_ts.py:234-247 | qlib/contrib/model/pytorch_sandwich.py:319-331 | qlib/contrib/model/pytorch_sfm.py:376-388 | qlib/contrib/model/pytorch_tabnet.py:176-188 | qlib/contrib/model/pytorch_tcn.py:231-243 | qlib/contrib/model/pytorch_tcn_ts.py:224-237 | qlib/contrib/model/pytorch_transformer.py:174-186 | qlib/contrib/model/pytorch_transformer_ts.py:159-172 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_tabnet.py:173\u0060 calls \u0060fillna\u0060, \u0060mean\u0060 and \u0060qlib/contrib/model/pytorch_alstm.py:221\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e277f6ba5b3e00ff9184328ba1c0b624b081ed0178458745fe8536f0da037080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 10): qlib/contrib/model/pytorch_alstm.py:240-252 | qlib/contrib/model/pytorch_gats.py:274-286 | qlib/contrib/model/pytorch_krnn.py:463-475 | qlib/contrib/model/pytorch_localformer.py:189-201 | qlib/contrib/model/pytorch_lstm.py:235-247 | qlib/contrib/model/pytorch_sandwich.py:333-345 | qlib/contrib/model/pytorch_sfm.py:390-402 | qlib/contrib/model/pytorch_tabnet.py:190-202 | qlib/contrib/model/pytorch_tcn.py:245-257 | qlib/contrib/model/pytorch_transformer.py:188-200 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gats.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4050075e87eb7d9dfe3552e9307918dc7256a9d9f1fc47a88233b4fccc3946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): qlib/contrib/model/pytorch_alstm_ts.py:260-272 | qlib/contrib/model/pytorch_gats_ts.py:288-300 | qlib/contrib/model/pytorch_gru_ts.py:254-266 | qlib/contrib/model/pytorch_localformer_ts.py:176-188 | qlib/contrib/model/pytorch_lstm_ts.py:249-261 | qlib/contrib/model/pytorch_tcn_ts.py:239-251 | qlib/contrib/model/pytorch_transformer_ts.py:174-186 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3aaef7978a1fa0e501436f51f841e445d644392fe5ec1943fe88570393b3d5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): qlib/contrib/model/pytorch_add.py:386-398 | qlib/contrib/model/pytorch_gats.py:245-257 | qlib/contrib/model/pytorch_hist.py:315-327 | qlib/contrib/model/pytorch_igmtf.py:270-282 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_add.py\u0060 and \u0060qlib/contrib/model/pytorch_gats.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060GRUModel\u0060 names \u0060...contrib.model.pytorch_gru\u0060 in one and \u0060qlib.contrib.model.pytorch_gru\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":"qlib/contrib/model/pytorch_add.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d47fbcbff9fa27bf710d24c3f47e3a8b27054003869e2c0832bb9f2011cb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): qlib/contrib/model/pytorch_localformer.py:131-143 | qlib/contrib/model/pytorch_transformer.py:130-142 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_transformer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"50474e841bb30d964e43c204f39552a75fe8631c6a502b3f9a963afc0cd8b88a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): qlib/contrib/model/pytorch_localformer_ts.py:106-118 | qlib/contrib/model/pytorch_transformer_ts.py:103-115 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_transformer_ts.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer_ts.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"908b98861de3b564fa9a5765d11890f04d94df142f60f56e492367d00994100d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): qlib/data/cache.py:604-616 | qlib/data/cache.py:980-992 \u2014 both copies are in the same file, so extract the block 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":"qlib/data/cache.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"050a56d5e093bffccccda05daca78fb7eba83a7977e00b884c4fe0e26803fd13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 10): qlib/contrib/model/pytorch_alstm.py:223-232 | qlib/contrib/model/pytorch_igmtf.py:262-271 | qlib/contrib/model/pytorch_krnn.py:446-455 | qlib/contrib/model/pytorch_localformer.py:172-181 | qlib/contrib/model/pytorch_lstm.py:218-227 | qlib/contrib/model/pytorch_sandwich.py:316-325 | qlib/contrib/model/pytorch_sfm.py:373-382 | qlib/contrib/model/pytorch_tabnet.py:174-183 | qlib/contrib/model/pytorch_tcn.py:226-237 | qlib/contrib/model/pytorch_transformer.py:171-180 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_igmtf.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_tcn.py:226\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_tabnet.py:173\u0060 calls \u0060fillna\u0060, \u0060mean\u0060 and \u0060qlib/contrib/model/pytorch_alstm.py:221\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fefa53fdf602bb61b56ee3b55fa1aab6389965de5817c1a7d31b3d910a0522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): qlib/contrib/data/highfreq_provider.py:155-166 | qlib/contrib/data/highfreq_provider.py:198-209 | qlib/contrib/data/highfreq_provider.py:228-238 \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":"qlib/contrib/data/highfreq_provider.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f29e88b62101e70eeb1ba335fe479c87b287de5e6f17cdcd8c4d33fd9a5607"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 15): qlib/contrib/model/pytorch_alstm.py:230-240 | qlib/contrib/model/pytorch_alstm_ts.py:250-260 | qlib/contrib/model/pytorch_general_nn.py:290-300 | qlib/contrib/model/pytorch_gru_ts.py:244-254 | qlib/contrib/model/pytorch_krnn.py:453-463 | qlib/contrib/model/pytorch_localformer.py:179-189 | qlib/contrib/model/pytorch_localformer_ts.py:166-176 | qlib/contrib/model/pytorch_lstm.py:225-235 | qlib/contrib/model/pytorch_lstm_ts.py:239-249 | qlib/contrib/model/pytorch_sandwich.py:323-333 | qlib/contrib/model/pytorch_sfm.py:380-390 | qlib/contrib/model/pytorch_tcn.py:235-245 | qlib/contrib/model/pytorch_tcn_ts.py:229-239 | qlib/contrib/model/pytorch_transformer.py:178-188 | qlib/contrib/model/pytorch_transformer_ts.py:164-174 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Reweighter\u0060 names \u0060...data.dataset.weight\u0060 in one and \u0060qlib.data.dataset.weight\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":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d883b7f48a5a80c79d05a5bdfdef0844a3d780552e7875c5c6e63bf799b3483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 11): qlib/contrib/model/pytorch_adarnn.py:316-326 | qlib/contrib/model/pytorch_alstm.py:276-286 | qlib/contrib/model/pytorch_gru.py:301-311 | qlib/contrib/model/pytorch_krnn.py:499-507 | qlib/contrib/model/pytorch_localformer.py:225-235 | qlib/contrib/model/pytorch_lstm.py:271-279 | qlib/contrib/model/pytorch_sandwich.py:369-377 | qlib/contrib/model/pytorch_sfm.py:445-455 | qlib/contrib/model/pytorch_tcn.py:281-291 | qlib/contrib/model/pytorch_tcts.py:360-370 | qlib/contrib/model/pytorch_transformer.py:224-234 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_adarnn.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_adarnn.py:315\u0060 calls \u0060reshape\u0060, \u0060transpose\u0060 and \u0060qlib/contrib/model/pytorch_alstm.py:275\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3212292807271a0471638092cc8c91e87818b6a6757eabdcfcc147ba28a454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 9): qlib/contrib/model/pytorch_alstm.py:217-227 | qlib/contrib/model/pytorch_gats.py:232-242 | qlib/contrib/model/pytorch_igmtf.py:256-266 | qlib/contrib/model/pytorch_krnn.py:440-450 | qlib/contrib/model/pytorch_localformer.py:166-176 | qlib/contrib/model/pytorch_lstm.py:212-222 | qlib/contrib/model/pytorch_sandwich.py:310-320 | qlib/contrib/model/pytorch_sfm.py:368-377 | qlib/contrib/model/pytorch_transformer.py:165-175 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gats.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/pytorch_alstm.py:217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c744bdca2fddcda96742b49811b1978b17fe3bd58eb7ce7c9cca7ffc610e1ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): qlib/contrib/strategy/rule_strategy.py:206-216 | qlib/contrib/strategy/rule_strategy.py:242-252 | qlib/contrib/strategy/rule_strategy.py:517-526 \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 \u0060qlib/contrib/strategy/rule_strategy.py:206\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0df76924b4f3b7d386de008e36fdc2a840cff9f5a16f4ad0bbeb5626971782d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): qlib/contrib/model/pytorch_localformer.py:106-116 | qlib/contrib/model/pytorch_transformer.py:105-115 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_transformer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb71153227fdaad0b4965526b1bd34a055b0e5532aff0777aaafaa4476f54e62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 5): qlib/contrib/model/pytorch_alstm.py:197-199 | qlib/contrib/model/pytorch_gru.py:197-199 | qlib/contrib/model/pytorch_localformer.py:146-156 | qlib/contrib/model/pytorch_tcn.py:204-206 | qlib/contrib/model/pytorch_transformer.py:145-155 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa416399c8a4313efa4568ec48a9eedbdb0fc2455d8015906697808f56374c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): qlib/contrib/model/pytorch_localformer.py:273-283 | qlib/contrib/model/pytorch_localformer_ts.py:254-264 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"747b0861f5da6b0b372458d2feaaebb4c019afc4c7538f86fcccc4bf75a1f653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): qlib/contrib/model/pytorch_alstm_ts.py:255-264 | qlib/contrib/model/pytorch_gats_ts.py:283-292 | qlib/contrib/model/pytorch_general_nn.py:295-304 | qlib/contrib/model/pytorch_gru_ts.py:249-258 | qlib/contrib/model/pytorch_localformer_ts.py:171-180 | qlib/contrib/model/pytorch_lstm_ts.py:244-253 | qlib/contrib/model/pytorch_tcn_ts.py:234-243 | qlib/contrib/model/pytorch_transformer_ts.py:169-178 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Reweighter\u0060 names \u0060...data.dataset.weight\u0060 in one and \u0060qlib.data.dataset.weight\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":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de47efe37f71dba9021bb952ba8bad824d107743cbaac4ca8a9653eaf742d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): qlib/contrib/model/pytorch_localformer.py:306-315 | qlib/contrib/model/pytorch_transformer.py:271-280 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_transformer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060qlib/contrib/model/pytorch_localformer.py:317\u0060 calls \u0060rnn\u0060 and \u0060qlib/contrib/model/pytorch_transformer.py:283\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23629c14ab7e5d33e544cbd07a837dea4bdc4394c321fe233dd56de6b49d305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): qlib/contrib/strategy/rule_strategy.py:341-351 | qlib/contrib/strategy/rule_strategy.py:428-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfbf8a09e9c5fe69e42a50af9fc6d9bd2eebc5785aadeb2bbe35e4cd8293a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): qlib/contrib/model/pytorch_alstm.py:65-73 | qlib/contrib/model/pytorch_alstm_ts.py:69-77 | qlib/contrib/model/pytorch_gru.py:65-73 | qlib/contrib/model/pytorch_gru_ts.py:67-75 | qlib/contrib/model/pytorch_krnn.py:271-279 | qlib/contrib/model/pytorch_lstm.py:64-72 | qlib/contrib/model/pytorch_lstm_ts.py:66-74 | qlib/contrib/model/pytorch_sandwich.py:147-155 | qlib/contrib/model/pytorch_tcn.py:70-78 | qlib/contrib/model/pytorch_tcn_ts.py:68-76 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7a01c5479fc4c91c8cd9ed8651d36008f0f5109578f573def3f52837b2aa88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): qlib/contrib/model/pytorch_alstm.py:215-223 | qlib/contrib/model/pytorch_gats.py:230-238 | qlib/contrib/model/pytorch_krnn.py:438-446 | qlib/contrib/model/pytorch_localformer.py:164-172 | qlib/contrib/model/pytorch_lstm.py:210-218 | qlib/contrib/model/pytorch_sandwich.py:308-316 | qlib/contrib/model/pytorch_tcts.py:241-249 | qlib/contrib/model/pytorch_transformer.py:163-171 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gats.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ab8d7afff998ff7b21ecec11f96d1628308995c5cd30a2ecaf414dcd2efef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): qlib/contrib/model/pytorch_add.py:229-237 | qlib/contrib/model/pytorch_gats.py:166-174 | qlib/contrib/model/pytorch_gats_ts.py:186-194 | qlib/contrib/model/pytorch_hist.py:214-222 | qlib/contrib/model/pytorch_igmtf.py:173-181 | qlib/contrib/model/pytorch_krnn.py:371-379 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_add.py\u0060 and \u0060qlib/contrib/model/pytorch_gats.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_add.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e142cdf0de8639a473d4281cb82cc2984e01cdd60bc82c5931ac13da0347bffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): qlib/contrib/model/pytorch_alstm_ts.py:188-196 | qlib/contrib/model/pytorch_gru_ts.py:182-190 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gru_ts.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed981daf4a128e47669380b5bcad682ae4c437aedeea931d52b558f73b42b330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): qlib/contrib/model/pytorch_gats.py:266-274 | qlib/contrib/model/pytorch_hist.py:336-344 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_hist.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba58ed60082ef8295da735813a892759c8a5bd2ce29ce2f225e5d2717f2e3218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20139 lines \u00D7 16): qlib/contrib/model/pytorch_alstm.py:170-170 | qlib/contrib/model/pytorch_gru.py:170-170 | qlib/contrib/model/pytorch_krnn.py:394-394 | qlib/contrib/model/pytorch_krnn.py:421-421 | qlib/contrib/model/pytorch_localformer.py:119-127 | qlib/contrib/model/pytorch_lstm.py:166-166 | qlib/contrib/model/pytorch_lstm.py:193-193 | qlib/contrib/model/pytorch_sandwich.py:264-264 | qlib/contrib/model/pytorch_sandwich.py:291-291 | qlib/contrib/model/pytorch_sfm.py:325-325 | qlib/contrib/model/pytorch_sfm.py:350-350 | qlib/contrib/model/pytorch_tcn.py:178-178 | qlib/contrib/model/pytorch_tcts.py:163-163 | qlib/contrib/model/pytorch_tcts.py:196-196 | qlib/contrib/model/pytorch_tcts.py:227-227 | qlib/contrib/model/pytorch_transformer.py:118-126 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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, \u0060qlib/contrib/model/pytorch_tcts.py:165\u0060 calls \u0060init_fore_model\u0060 and \u0060qlib/contrib/model/pytorch_tcts.py:198\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8178eeb5ec75c7768c0bb6eadb90e5edfd87ac4445016247def8ba6bde5fe4be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): qlib/data/ops.py:267-275 | qlib/data/ops.py:691-699 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/ops.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60ec3a678dad7d24146ee323469b1f38ec16815e8cbd65aa43ef078ba4a4161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): qlib/contrib/model/pytorch_alstm.py:187-194 | qlib/contrib/model/pytorch_gru.py:187-194 | qlib/contrib/model/pytorch_krnn.py:411-418 | qlib/contrib/model/pytorch_localformer.py:136-143 | qlib/contrib/model/pytorch_lstm.py:183-190 | qlib/contrib/model/pytorch_sandwich.py:281-288 | qlib/contrib/model/pytorch_sfm.py:315-322 | qlib/contrib/model/pytorch_tcn.py:194-201 | qlib/contrib/model/pytorch_transformer.py:135-142 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"645f0d594369a98200d00decb95197eaadd522bb53b6466f6c7e10f0f36abee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 8): qlib/contrib/model/pytorch_add.py:255-261 | qlib/contrib/model/pytorch_add.py:424-430 | qlib/contrib/model/pytorch_gats.py:205-212 | qlib/contrib/model/pytorch_gats.py:309-316 | qlib/contrib/model/pytorch_hist.py:258-265 | qlib/contrib/model/pytorch_hist.py:390-397 | qlib/contrib/model/pytorch_igmtf.py:230-236 | qlib/contrib/model/pytorch_igmtf.py:336-342 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_add.py\u0060 and \u0060qlib/contrib/model/pytorch_gats.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060DatasetH\u0060 names \u0060...data.dataset\u0060 in one and \u0060qlib.data.dataset\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":"qlib/contrib/model/pytorch_add.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8203884d073d6ca3abe64712590c7f22d5537e89ebb42fecde5d012b2fbddb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): qlib/contrib/model/pytorch_alstm_ts.py:221-228 | qlib/contrib/model/pytorch_general_nn.py:251-258 | qlib/contrib/model/pytorch_gru_ts.py:215-222 | qlib/contrib/model/pytorch_lstm_ts.py:210-217 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_general_nn.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Reweighter\u0060 names \u0060...data.dataset.weight\u0060 in one and \u0060qlib.data.dataset.weight\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_alstm_ts.py:218\u0060 calls \u0060config\u0060 and \u0060qlib/contrib/model/pytorch_general_nn.py:249\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0d48c9355ffeb726530d4629025f4158650ad1e9eefde3a11b88e2d8d135fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): qlib/contrib/model/catboost_model.py:38-45 | qlib/contrib/model/pytorch_igmtf.py:254-262 | qlib/contrib/model/pytorch_sfm.py:366-373 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/catboost_model.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6216e168d184daacc4e0b06db6c0c2575ec53894d8bf8c103b65dc57767c070c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): qlib/contrib/data/highfreq_provider.py:287-294 | qlib/contrib/data/highfreq_provider.py:332-339 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/highfreq_provider.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c68592a51764b56f86811a99653b9d3f67cbb1f16a9b7b9e5cf9acd8eb1ec22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): qlib/contrib/model/catboost_model.py:42-49 | qlib/contrib/model/highfreq_gdbt_model.py:84-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/catboost_model.py:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/catboost_model.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e62d4e2f80de971cc99bd7963eaf6f28e070d3f7d510a0ca073dc0daff2c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): qlib/contrib/model/pytorch_alstm.py:337-344 | qlib/contrib/model/pytorch_alstm_ts.py:348-355 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_alstm.py:335\u0060 calls \u0060view\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py:347\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee952db7653500d5d21afd9ab2b0d1812a2218d7d3ef75d288533c68b7794ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): qlib/contrib/model/pytorch_hist.py:197-210 | qlib/contrib/model/pytorch_igmtf.py:156-169 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_hist.py\u0060 and \u0060qlib/contrib/model/pytorch_igmtf.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_hist.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"0882bbbe338ab60c14efecd3d9ca5fc048371cb17a358f6db0c09e396793dba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): qlib/contrib/model/pytorch_hist.py:350-357 | qlib/contrib/model/pytorch_igmtf.py:305-312 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_hist.py\u0060 and \u0060qlib/contrib/model/pytorch_igmtf.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_hist.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7c1037278e43cf584c3704416c737151fa0a472bf4fd2a04238880841cfa5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): qlib/data/ops.py:305-312 | qlib/data/ops.py:662-669 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/ops.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a35e6e5c6f682f14b5958306c5e9e2b0f56750e29cb2feecd5b15656951f936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): qlib/data/storage/file_storage.py:366-372 | qlib/utils/__init__.py:62-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":"qlib/data/storage/file_storage.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e97e6768110a4ce62504de463ca6099082d877d8146f32dff6e88771ca9c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): qlib/rl/order_execution/simulator_simple.py:304-311 | qlib/rl/order_execution/strategy.py:258-265 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28b9c415ec2a55c17321181c711f8895f9c0760da61aaab3c2e536119e2b261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): qlib/contrib/model/catboost_model.py:40-46 | qlib/contrib/model/pytorch_alstm.py:217-224 | qlib/contrib/model/pytorch_gats.py:232-239 | qlib/contrib/model/pytorch_igmtf.py:256-263 | qlib/contrib/model/pytorch_krnn.py:440-447 | qlib/contrib/model/pytorch_localformer.py:166-173 | qlib/contrib/model/pytorch_lstm.py:212-219 | qlib/contrib/model/pytorch_sandwich.py:310-317 | qlib/contrib/model/pytorch_sfm.py:368-374 | qlib/contrib/model/pytorch_tcts.py:243-250 | qlib/contrib/model/pytorch_transformer.py:165-172 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gats.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060qlib/contrib/model/catboost_model.py:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/catboost_model.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba03a51e6cef6034cd8cf81d265a56a651e9bea5fc0bd2bff8af472f1e180e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): qlib/contrib/model/pytorch_alstm.py:188-194 | qlib/contrib/model/pytorch_gru.py:188-194 | qlib/contrib/model/pytorch_krnn.py:412-418 | qlib/contrib/model/pytorch_localformer.py:137-143 | qlib/contrib/model/pytorch_lstm.py:184-190 | qlib/contrib/model/pytorch_sandwich.py:282-288 | qlib/contrib/model/pytorch_sfm.py:316-322 | qlib/contrib/model/pytorch_tcn.py:195-201 | qlib/contrib/model/pytorch_tcts.py:218-224 | qlib/contrib/model/pytorch_transformer.py:136-142 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba417d1a6185a4f5f9acd37e7e7aedf9ad0275a07bc7501f9744f22e2ab0632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): qlib/contrib/model/pytorch_alstm_ts.py:198-204 | qlib/contrib/model/pytorch_general_nn.py:227-233 | qlib/contrib/model/pytorch_gru_ts.py:192-198 | qlib/contrib/model/pytorch_lstm_ts.py:187-193 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_general_nn.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac56dbfef9f743e3799480684836ad69a9dc01c9fa4737bbe7f4c3b54c27221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): qlib/contrib/model/pytorch_gats_ts.py:225-231 | qlib/contrib/model/pytorch_localformer_ts.py:132-138 | qlib/contrib/model/pytorch_tcn_ts.py:195-201 | qlib/contrib/model/pytorch_transformer_ts.py:129-135 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats_ts.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66a924b69a601abcb00b05d47477a8591456ea8e0ef3b0df48fdbb6f7808785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): qlib/contrib/eva/alpha.py:46-53 | qlib/contrib/eva/alpha.py:102-108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/eva/alpha.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbe10401b481c44401d188ca141d3879133b777fa237f1fa4f85729e1d31211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): qlib/contrib/evaluate.py:360-366 | qlib/contrib/evaluate.py:369-375 \u2014 both copies are in the same file, so extract the block 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":"qlib/contrib/evaluate.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"600551902065dcb0f67469632c61274066dbe732d2c5e2d09a82796f7ae7eaaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): qlib/contrib/model/pytorch_gats.py:360-372 | qlib/contrib/model/pytorch_gats_ts.py:372-384 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each 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, \u0060qlib/contrib/model/pytorch_gats.py:376\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py:387\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"598dbdd539d8ea6c10f177ff1b4ccbad4a6c0275e4dad8b48913bc4365d93b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): qlib/contrib/model/pytorch_gats.py:378-384 | qlib/contrib/model/pytorch_gats_ts.py:387-393 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_gats.py:376\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py:386\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf1e9af32c84ac3f25b845b15112cab32f647f83279146caabf63b30c6c65b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): qlib/contrib/model/pytorch_tra.py:350-356 | qlib/contrib/model/pytorch_tra.py:359-365 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tra.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92c02357af69edca26cc724b36057a55b289c3ebb98032cd8dc9237a5129299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): qlib/contrib/model/pytorch_alstm.py:162-167 | qlib/contrib/model/pytorch_gru.py:162-167 | qlib/contrib/model/pytorch_krnn.py:386-391 | qlib/contrib/model/pytorch_localformer.py:111-116 | qlib/contrib/model/pytorch_lstm.py:158-163 | qlib/contrib/model/pytorch_sandwich.py:256-261 | qlib/contrib/model/pytorch_sfm.py:342-347 | qlib/contrib/model/pytorch_tcn.py:170-175 | qlib/contrib/model/pytorch_transformer.py:110-115 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_gru.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e052299a68162adb565cb276c6d4963acc7810762547a2af769e5d2234e99164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): qlib/contrib/model/pytorch_alstm_ts.py:214-219 | qlib/contrib/model/pytorch_gats_ts.py:240-245 | qlib/contrib/model/pytorch_gru_ts.py:208-213 | qlib/contrib/model/pytorch_localformer_ts.py:147-152 | qlib/contrib/model/pytorch_lstm_ts.py:203-208 | qlib/contrib/model/pytorch_transformer_ts.py:144-150 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gats_ts.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f85b0d17b0e8ccfc4b6e045aa9c101e8c245a448e0bdf89a5fb0b3c7752846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): qlib/contrib/model/pytorch_gru_ts.py:282-287 | qlib/contrib/model/pytorch_localformer_ts.py:204-209 | qlib/contrib/model/pytorch_lstm_ts.py:277-282 | qlib/contrib/model/pytorch_tcn_ts.py:267-272 | qlib/contrib/model/pytorch_transformer_ts.py:202-207 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gru_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gru_ts.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa46c5eef39b9b92e967bf9c0b55d64331c6b34e8485fc0f6bedc939b13302e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/highfreq/highfreq_handler.py:69-74 | qlib/contrib/data/highfreq_handler.py:69-74 | qlib/contrib/data/highfreq_handler.py:390-395 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/highfreq/highfreq_handler.py:68\u0060 calls \u0060get_normalized_price_feature\u0060 and \u0060qlib/contrib/data/highfreq_handler.py:68\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/highfreq/highfreq_handler.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bd47604976ce5ba2ab12bc661a55f05687987f6f6976bece2f40dbf04f9f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): qlib/contrib/data/loader.py:192-198 | qlib/contrib/data/loader.py:232-237 | qlib/contrib/data/loader.py:270-278 \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 \u0060qlib/contrib/data/loader.py:270\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060qlib/contrib/data/loader.py:202\u0060 calls \u0060use\u0060 and \u0060qlib/contrib/data/loader.py:239\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/loader.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c01213392a5a00b207eae9b65176fdad37d8d83444a154c93dfdab382bc68f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): qlib/contrib/model/double_ensemble.py:66-71 | qlib/contrib/model/highfreq_gdbt_model.py:82-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/double_ensemble.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"189a48d1b464a7d6488e6b2bbf977f0ecdfb5d98609cb6a386b7e903dde67892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): qlib/contrib/model/pytorch_adarnn.py:447-452 | qlib/contrib/model/pytorch_adarnn.py:545-550 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f5d7bc342c40da0b1f8c2c251e2f588baa0b77e37e9f5a333ebf05dca5c1d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): qlib/contrib/model/pytorch_hist.py:296-301 | qlib/contrib/model/pytorch_hist.py:373-378 \u2014 both copies are in the same file, so extract the block 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, \u0060qlib/contrib/model/pytorch_hist.py:379\u0060 calls \u0060prepare\u0060 and \u0060qlib/contrib/model/pytorch_hist.py:302\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_hist.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c98341cae3936947990b5f16b08afb311f536bd00bb0d2592cbd5b93c08194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): qlib/contrib/model/pytorch_tabnet.py:308-314 | qlib/contrib/model/pytorch_tabnet.py:338-344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060qlib/contrib/model/pytorch_tabnet.py:316\u0060 calls \u0060to\u0060 and \u0060qlib/contrib/model/pytorch_tabnet.py:346\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tabnet.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"195cedbf0f52a88d57fd288c9f9a2bf0c79fe3338b0e6a8d34b2c5812f93a613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): qlib/data/cache.py:593-599 | qlib/data/cache.py:960-966 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/data/cache.py:959\u0060 calls \u0060IndexManager\u0060 and \u0060qlib/data/cache.py:591\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7c0cbcb3cf1bce445cb0071c66d743ad9f78ba1636c301271acb8c547ccb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): qlib/contrib/model/pytorch_gats.py:182-186 | qlib/contrib/model/pytorch_hist.py:233-237 | qlib/contrib/model/pytorch_igmtf.py:208-212 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gats.py\u0060 and \u0060qlib/contrib/model/pytorch_hist.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060qlib/contrib/model/pytorch_hist.py:229\u0060 calls \u0060isnan\u0060 and \u0060qlib/contrib/model/pytorch_gats.py:178\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58c1f5010e689b0c09843c53317c6bf544bf0e74372695b5ec7a706f7dc0d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): qlib/contrib/model/pytorch_gats_ts.py:200-204 | qlib/contrib/model/pytorch_gats_ts.py:219-224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats_ts.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d5b057dade7db7081ff4d54973c96b615bade12e5a1b7fe5ec13ceeb5a2c3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): qlib/contrib/model/pytorch_lstm_ts.py:163-167 | qlib/contrib/model/pytorch_lstm_ts.py:181-186 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_lstm_ts.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfbc7a8cb64bbda79c3c685013a13516c833f084acaf02235ad4134d8c2d582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): qlib/contrib/model/pytorch_transformer.py:260-267 | qlib/contrib/model/pytorch_transformer_ts.py:240-247 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_transformer.py\u0060 and \u0060qlib/contrib/model/pytorch_transformer_ts.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060qlib/contrib/model/pytorch_transformer.py:271\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_transformer_ts.py:251\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_transformer.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9eda989a09d41bd8eb58c8eaaddc3bf95045bf938815e140c2d163471193f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/highfreq/highfreq_handler.py:17-36 | qlib/contrib/data/highfreq_handler.py:20-39 | qlib/contrib/data/highfreq_handler.py:320-340 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/highfreq/highfreq_handler.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da245b48a2910bb3d21fcc19e4674499fe650d78c77dfca9e6aa7f00c557fed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): qlib/contrib/model/pytorch_alstm.py:296-302 | qlib/contrib/model/pytorch_alstm_ts.py:310-316 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm.py\u0060 and \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6c4b70575652ccd19d3b4f52705b62cdb6e6ea66721602ee9daff5776083da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): qlib/contrib/model/pytorch_alstm_ts.py:148-156 | qlib/contrib/model/pytorch_gru_ts.py:146-154 | qlib/contrib/model/pytorch_lstm_ts.py:142-150 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_alstm_ts.py\u0060 and \u0060qlib/contrib/model/pytorch_gru_ts.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e114b094ea87225b40cd6292e3ad9c26d2980a1c8247ef8f53c99c09a662d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): qlib/contrib/model/pytorch_gru.py:321-332 | qlib/contrib/model/pytorch_gru_ts.py:304-315 | qlib/contrib/model/pytorch_tcts.py:406-417 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_gru.py\u0060 and \u0060qlib/contrib/model/pytorch_gru_ts.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060qlib/contrib/model/pytorch_gru.py:336\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_gru_ts.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":"qlib/contrib/model/pytorch_gru.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefc6288dfb43c3b8748b53b2280e2152cac447ac9f38276304369a52caca7c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): qlib/contrib/model/pytorch_lstm.py:288-299 | qlib/contrib/model/pytorch_lstm_ts.py:299-310 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_lstm.py\u0060 and \u0060qlib/contrib/model/pytorch_lstm_ts.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060qlib/contrib/model/pytorch_lstm.py:303\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060qlib/contrib/model/pytorch_lstm_ts.py:313\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_lstm.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"68784bbc6ae75eba57d8972d4477d3ef9204d8262d891b8c717912e7989b0686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): qlib/contrib/model/pytorch_hist.py:468-472 | qlib/contrib/model/pytorch_igmtf.py:392-396 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_hist.py\u0060 and \u0060qlib/contrib/model/pytorch_igmtf.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_hist.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26b066e2dab558ac861541acbd917289fdf24153b1bfe9c1e9d9805123d0f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): qlib/contrib/model/pytorch_localformer.py:246-252 | qlib/contrib/model/pytorch_localformer_ts.py:227-233 | qlib/contrib/model/pytorch_tra.py:600-606 | qlib/contrib/model/pytorch_transformer.py:245-251 | qlib/contrib/model/pytorch_transformer_ts.py:225-231 \u2014 before extracting anything, compare \u0060qlib/contrib/model/pytorch_localformer.py\u0060 and \u0060qlib/contrib/model/pytorch_localformer_ts.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb9ac76d881de3dd26b6eed7b2255b5c28fdc3bbe5b5c5add7826384c5ed981"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): scripts/data_collector/baostock_5min/collector.py:201-225 | scripts/data_collector/crypto/collector.py:196-214 | scripts/data_collector/fund/collector.py:179-197 | scripts/data_collector/yahoo/collector.py:389-437 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/baostock_5min/collector.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efd8cd4cd357ef3e85cb0b0ff73db615a69e8706bcbe9a00eb691480de6ba47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): scripts/data_collector/pit/collector.py:120-143 | scripts/data_collector/pit/collector.py:170-193 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/pit/collector.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"100384353c72da932a5fb6692634d9bfb8e8b9ac5b5d2b7ad80a75790d2e786c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): scripts/dump_bin.py:82-139 | scripts/dump_pit.py:69-116 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/dump_bin.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9497d10e8faee3ce1c9cad28630f9385bf8a8fe82ebfc7caedb6d6fbabeec58c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/nested_decision_execution/workflow.py:245-268 | examples/nested_decision_execution/workflow.py:320-389 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/nested_decision_execution/workflow.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca21028ed81305a872080bb2a10e109bdf0f2a5779a17ae15733f595b7c26840"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): scripts/dump_bin.py:340-347 | scripts/dump_pit.py:267-273 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/dump_bin.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"538e00b80a56e1ea07874fa5a6452d761cbdf2d1938f535c9ba2f22adddc8056"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): scripts/data_collector/yahoo/collector.py:843-882 | scripts/data_collector/base.py:429-452 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/yahoo/collector.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"4615b8ca5e08a24f57e366cc111950c9dcf8ecb9292a62dd946d0a0ee17088a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): examples/benchmarks_dynamic/DDG-DA/workflow.py:30-37 | examples/benchmarks_dynamic/baseline/rolling_benchmark.py:24-31 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/benchmarks_dynamic/DDG-DA/workflow.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbe360858105f5f5b8ec91740ecc05f96384b35cef354e895925abff7175244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): scripts/data_collector/baostock_5min/collector.py:303-324 | scripts/data_collector/yahoo/collector.py:807-838 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/baostock_5min/collector.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"1205701810be6e0ad2580e2c4d14ed036a4f23f16f781bb5391ec8cfd8b604b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): scripts/data_collector/baostock_5min/collector.py:233-240 | scripts/data_collector/yahoo/collector.py:601-610 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/baostock_5min/collector.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e36665edc2dfcc959cfab3aaf0c2e255960ce1b5d3111823b986e5bede0d57f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): scripts/data_collector/baostock_5min/collector.py:247-250 | scripts/data_collector/yahoo/collector.py:441-444 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/baostock_5min/collector.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a29bcd9fe112d102cb1507ed6e85820cf936a71c12937514cf169b81c9d303b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 2): scripts/dump_bin.py:82-114 | scripts/dump_pit.py:69-99 \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/dump_bin.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f4698813ec9b8ac6158b8fd43b9ab0797a43ec24166a6309f625c1a5a65447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): scripts/data_collector/pit/collector.py:128-143 | scripts/data_collector/pit/collector.py:178-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/pit/collector.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"718e4529b4246b99d9c8420324231c18016ad091f857fd688ac5be1e7ca080b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): scripts/data_collector/crypto/collector.py:154-168 | scripts/data_collector/fund/collector.py:133-147 \u2014 \u0060scripts/data_collector/crypto/collector.py\u0060 and \u0060scripts/data_collector/fund/collector.py\u0060 are one unit implemented once 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 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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":"scripts/data_collector/crypto/collector.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1877eb83d65f325253a1a244f2de8eff7c8ea8c37119a8b4883d4a84ff4d5e3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/data_collector/utils.py:387-398 | scripts/data_collector/utils.py:437-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/data_collector/utils.py:401\u0060 calls \u0060replace\u0060 and \u0060scripts/data_collector/utils.py:451\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/utils.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"243e0904ae5340ca1e1aa8ff5085bce3016ae28e313d43355065e49c7a040d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): scripts/data_collector/utils.py:353-363 | scripts/data_collector/utils.py:394-404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/data_collector/utils.py:353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/utils.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"92636d660ec382f9eb16a282b8a4cfd7ba8ad5c117db4406d872a79e72a80a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): scripts/data_collector/crypto/collector.py:107-115 | scripts/data_collector/fund/collector.py:77-85 | scripts/data_collector/yahoo/collector.py:101-109 \u2014 \u0060scripts/data_collector/crypto/collector.py\u0060 and \u0060scripts/data_collector/fund/collector.py\u0060 are one unit implemented once 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 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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":"scripts/data_collector/crypto/collector.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"067afb28e605d487d2f7cd364dc3f11c39e2113080f0e21678ad3a5085d71676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): scripts/data_collector/baostock_5min/collector.py:205-211 | scripts/data_collector/crypto/collector.py:198-205 | scripts/data_collector/fund/collector.py:181-188 \u2014 \u0060scripts/data_collector/crypto/collector.py\u0060 and \u0060scripts/data_collector/fund/collector.py\u0060 are one unit implemented once 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 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060scripts/data_collector/baostock_5min/collector.py:205\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/data_collector/baostock_5min/collector.py:203\u0060 calls \u0060first_valid_index\u0060, \u0060deepcopy\u0060 and \u0060scripts/data_collector/crypto/collector.py:197\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will 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/data_collector/baostock_5min/collector.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02451f99c7aba475568a350b84b8e679b00305d8ab707b2ed334475a8965b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): scripts/data_collector/crypto/collector.py:203-211 | scripts/data_collector/fund/collector.py:186-194 | scripts/data_collector/yahoo/collector.py:399-407 \u2014 \u0060scripts/data_collector/crypto/collector.py\u0060 and \u0060scripts/data_collector/fund/collector.py\u0060 are one unit implemented once 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 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/data_collector/yahoo/collector.py:396\u0060 calls \u0060tz_localize\u0060 and \u0060scripts/data_collector/crypto/collector.py:200\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/crypto/collector.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ce3e78169b6fc2e8b90d789fc68f0492525efcf15815241327da8d3e04dff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): scripts/data_collector/utils.py:352-359 | scripts/data_collector/utils.py:393-400 | scripts/data_collector/utils.py:443-450 \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, \u0060scripts/data_collector/utils.py:360\u0060 calls \u0060replace\u0060 and \u0060scripts/data_collector/utils.py:451\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/utils.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7004cb68209601a07767e6fbc8f60d242f785f41d0d5e175765c41c6ca7c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): scripts/data_collector/pit/collector.py:108-114 | scripts/data_collector/pit/collector.py:136-142 | scripts/data_collector/pit/collector.py:186-192 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/data_collector/pit/collector.py:115\u0060 calls \u0060apply\u0060 and \u0060scripts/data_collector/pit/collector.py:143\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will 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/data_collector/pit/collector.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec27a965010be1bdb5d3882ae31b5ef7fc34b6ed9bc716525b81b71d4c9ba31a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/data_collector/baostock_5min/collector.py:220-225 | scripts/data_collector/yahoo/collector.py:432-437 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/baostock_5min/collector.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"876c13815edc703a16684e3e047ef9da81414aa108f8c3225024235e4b452e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/hyperparameter/LightGBM/hyperparameter_158.py:10-34 | examples/hyperparameter/LightGBM/hyperparameter_360.py:12-37 \u2014 before extracting anything, compare \u0060examples/hyperparameter/LightGBM/hyperparameter_158.py\u0060 and \u0060examples/hyperparameter/LightGBM/hyperparameter_360.py\u0060 as WHOLE FILES: 83% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/hyperparameter/LightGBM/hyperparameter_158.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b689f8d9218bdb9495c02c8c9f8c73c138c6d8767b2ada4ebabdde64468b8f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/data_collector/baostock_5min/collector.py:174-180 | scripts/data_collector/yahoo/collector.py:373-379 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"scripts/data_collector/baostock_5min/collector.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d134af2db8051c2cb1ed46450ecf61f3edba87241937204d70de57ac6b3b25ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/data_collector/baostock_5min/collector.py:187-191 | scripts/data_collector/yahoo/collector.py:589-593 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/baostock_5min/collector.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"49003e60edd9e20d9d52b517e34d8041c56c54adb7444b2e9b2ff06b6b8ddbca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): scripts/data_collector/crypto/collector.py:119-124 | scripts/data_collector/fund/collector.py:89-94 | scripts/data_collector/yahoo/collector.py:113-118 \u2014 \u0060scripts/data_collector/crypto/collector.py\u0060 and \u0060scripts/data_collector/fund/collector.py\u0060 are one unit implemented once 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 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/crypto/collector.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2709dce3d7ffab17bc1fdda4343529fe434ce07d646926795d41bcadd96f0c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3): scripts/data_collector/crypto/collector.py:69-104 | scripts/data_collector/fund/collector.py:39-74 | scripts/data_collector/yahoo/collector.py:63-98 \u2014 \u0060scripts/data_collector/crypto/collector.py\u0060 and \u0060scripts/data_collector/fund/collector.py\u0060 are one unit implemented once 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 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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":"scripts/data_collector/crypto/collector.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13681be74bdda672c76d374570cf6ca94ab1da012780de3c984275e0e27eef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/data_collector/pit/collector.py:122-126 | scripts/data_collector/pit/collector.py:172-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/pit/collector.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a87bc4dba67321ab65b68de8e55ccb75bf09238ef403852eb7401a5259814e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TradeCalendarManager (LCOM4 4): TradeCalendarManager\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":"qlib/backtest/utils.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"298cab9e6f75e92af6e051f763381e1ea080f0132302af38beaee3144323da5a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TrainingVessel (LCOM4 4): TrainingVessel\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":"qlib/rl/trainer/vessel.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e47684b418af065022cd19564eb9256e664d2a88ed4d5b4b97e78e58c347f9"}},{"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: qlib/contrib/model/pytorch_nn.py, scripts/data_collector/base.py, qlib/data/filter.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e116395a04afa115f8f8ed1e434208ec726d592d95c1066f0231bf3f2b1277fa"}},{"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 (4 single-owned of 182 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; 182 of the 248 production source files in this repository met that bar). They are anonymized user #2 (1 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: qlib/data/storage/file_storage.py."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO this is just sanity check. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/rl/test_trainer.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"86811e0e49fea384eafecf4d5b0070651a9380d40c3695471e1689e325c484d0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: processors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/model/test_general_nn.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8fb00e720a38ec33b5d3ead2a5a97548b83016c92dad7cef2346a96503ab75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: actually, this version is much faster when no cache or optimization \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/misc/test_utils.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4214fc69bd31742634d470b5ea8f8aea9140fc7c1672255436c38b5f5d242a4a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Due to the low quality of data. Hard to make sure there are enough data \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/dataset_tests/test_datalayer.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"504db7f238f9e95d3ec3b3824f9cd6f95f07f21967dd07229b2340f2903a06b1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: The yahoo data is not perfect. We have to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/dataset_tests/test_datalayer.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bb0bfb7d1a88821ab249d5b2960a672f24c42c26a5863eb84b8dc4efc7988c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 10 files: The identical TodoComment appears in 10 files (14 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 14 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# TODO:\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/data_mid_layer_tests/test_dataloader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a76d8c9585eaadbf9abf255dac2d8341a935d7ab127e136279e4cf962888699"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: US future calendar \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/future_calendar_collector.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4278f3ebc7b24ca275041d7b65a98edc000031610777dbbc257d1b74033581bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: do we need other information, like fund_name from [\u0027000001\u0027, \u0027HXCZHH\u0027, \u0027\u534E\u590F\u6210\u957F\u6DF7\u5408\u0027, \u0027\u6DF7\u5408\u578B\u0027, \u0027HUAXIACHENGZHANGHUNHE\u0027] \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/utils.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc60bb1ca7fb2175099bdd720c1a50b749705ecd1308533bcc255e8a4396c413"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: using daily data factor \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/utils.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b17a4f6d01d15dd562076b6d2e92020a40c83e883912e2676464e10b4d465f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: np.nan or 1 or 0 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/utils.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7817a326962badfb06d2fd74daf1eec7e7087661cb6bc3c35bcc0fa686f63e4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: find a more accurate data source \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/utils.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"64df75c6683bbb329c59936f9d481e91be39c3b7f762cb70963fceb124d3381c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: from MSN \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/yahoo/collector.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"227a75eed854f8784c735b7a7c2e603fa57f4ca0633c67e6420d82aa74b939ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: from MSN \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/yahoo/collector.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1193f094314c46a99b147db8921b97bc93660013688878d22ad1ce086d4aa0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: from MSN \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/yahoo/collector.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"9111bfa21062890faff7fc6d4f1ca80532f88820596dfad342a4172ec9cf40d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support 1min \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/yahoo/collector.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"9775c4a915e310e7d24058f4a33d3d7610f2e0c75883de8c9fb24b2a6e0648d5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support 1min \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/yahoo/collector.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3b1ea200a3402d608f56d8e7e0fd82dd148261e9cab1de834e03bef6d2dbb0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support 1min \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/yahoo/collector.py"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ceb8ec138b71cc37cd060a1f789459ce5b6b17bd5eb5ce1336656dcd647996"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: numberOfHistoricalDaysToCrawl should be bigger enough \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/fund/collector.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9836522a89ea621973824f812553a380617f66e1755e36ccff47b7377e6c8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should we sort the value by datetime? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/fund/collector.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7682db3582646306ef0930b3163bfaca5cc68115eb304e11180b15920556393"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: the C[\u0022provider_uri\u0022] is modified in this function \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/__init__.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3bfa0d5d55b5f9c141bf0d6b7854025f3a1452476c153e9b670ce17e4a0f14"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This validation logic is a temporary solution. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/config.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb654739c3e1515bd1aa734b1d640d282658d117086433c8bc207433d60fe37"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: update region based on kwargs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/config.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b0d2041a197424d6ce2627da3731cd275544e1057c688058886161a156a17d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Mlflow can only list 50000 records at most!!!!!!! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/exp.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"a772de5b8186fa54dfc5d220c0d1bc951798f890c3b3b2d70b9db983c72a087a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: currently, this is only supported in MLflowRecorder. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/recorder.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d82442bdf64038ba9f4357ac9b6f990b29bdfc5b0ee6323cf82c757f67f794"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: the sub-directories maybe git repos. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/recorder.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64e298a8cd72f9c83e61f7ac246b6b4f1115cce0a40c60f3802f353e91420bf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: catch the raised error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/task/manage.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ee6d05b1de2d646790926911949581d010994213727cdc621f49c321c1f867"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Currently the delay_prepare is not implemented in a proper way. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/manager.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e084151376917622431b37b15ddb511a87f0e0910b870906190e7824a2594e1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Train multiple online models at \u0060first_train\u0060 will result in getting too much online models at the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/manager.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"73506605c112ddd07a9ad2e3fa00af7671b8601d0e4488253495883c7fb67030"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: get logging level firstly and restore it here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/manager.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24bb76b8eea0fa1e63e107bed370448b13f049d87d95375396bbd5a43f62542"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/manager.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2df791cfee3c2a29f119bdcd350971607d0a5420401ef64c9ac3f3518bb1b8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"3429f49ff13a873d486921901f2c8158f9111c9bcc01629acf5303e99ff7f352"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/data.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"36afa76cadc4118e43ebdd0a2e5b8b39150660d5aa56d93ba5ece61e6e4a1bca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/rolling/base.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1395fdd99a34b3717d49a3708809f0c552cb4019f5692c602088a103119eeda6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/decision.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"455c2c1d3c0c88cff3e7e3c9b99066bab8f4d289d946fa3c65ab875a93b50a0a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/high_performance_ds.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"05eae18f77ef5e80f64b6de038cc1593fe7785e2d9f9b689ae8f0b899bfb525e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: if use DelayTrainer and worker (and worker is faster than main progress), there are some possibilities of showing this warning. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/manager.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac584b847327c1e1b1ab5e128f77cba7d15a6663c1a98b864ee3cdb615de54d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: filter recorders by latest test segments is not a necessary \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/strategy.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df13337c4ad2951292c7163fc12065c678e7020f290d56d0013ba3fd7b801b3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: automate this hist_ref in the future. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/update.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4069eb4e57b1bb48624202a9ca9b959b87f7e82e16a56a7116bc4cce948d9c8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: it will raise error when running routine with delay trainer \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/update.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"803675bd3b793cbf1726c8adad97498a7c7bf8d37482635589b79cd7cd03b784"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: the problem below is not solved \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/update.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"867b30a1d5f6d6c66b90c9e7ba7bc334e98c484185f63e864bd90b666961c80b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this utils covers too much utilities, please seperat it into sub modules \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/__init__.py"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fad9a7f6a5d541d8a05eab409c7bbe7a74731e348c8e654335cb6dffd75bc7c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this maybe used in the feature if we want to support the computation of different frequency data \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/__init__.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84b32919e0ca70fb04549a66dad37f1b57070d41311369de4c2b58e368b505f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: This class can only be accurate to the day. If it is a minute, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/__init__.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed5ed714e8a719553cf00c18e4919c712ea54ca6deaa57558efc998ae5bd21d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: create a subclass for single value query \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/index_data.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"639cfc23d1e1e0a513692ac97492c79f82473a7568f1193eb076b76cf78bfc6c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: weird logic and not general \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/index_data.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d886db090662f5f8b62c48d990e8f9c24e7f83bc6985bce86dceaf94f2847c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: weird logic and not general \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/index_data.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"69dbc5f83dbcd4a3264cdde8b63149c3e02b7818f53a73033bb845a5770e54ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This method can be more general \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/index_data.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e61bca1feb997d7235486ce652e6a77b65d066ffd8c03c5a24e4f5f1539be9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add and __add__ are a little confusing. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/index_data.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"4616eb9d8cff5c7051e4783423544c65e3d9686ccb7418803b26f5bf3393f9ea"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # 2: \u0060XXX() got an unexpected keyword argument \u0027YYY\u0027 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/mod.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f7bcc2020681148d0364b15dd419c0a6f3e8cf6df9e78468ce5f6deb033f07"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: this list should from data \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/time.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0c80c13689217e9730375a450b0d23920c45f7f8e62ea0b905f1ce40438fa8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: simulator/observation might need seed to prefetch something \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/env_wrapper.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7601553a8fb26042f79eb4cf4c00af0200336a1e0a5baf0366c42e67a3a0c6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: I haven\u0027t given much thought about this. Let\u0027s hold it for one iteration. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"957f89c269b27f78ba03815dd4018fb5a061867956003d7fd55d9dd7e9754eb9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: detect and rescue object that could be scalar or array \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04452029f19fc2fc58021fe43a481c7abb403beacb416d8da1b5976ff84594e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: reward can be a list of list for MARL \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"91572256954c2dce570c2a09526982df95d5ec3bcb07dc9d826a88532f322d7a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: this is actually incorrect (see last FIXME) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d019da80b3fd405c9bb21d66ada2179629639aa822059ca27a1419aa2c5ebc14"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: needs a metric count \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"611dcf04d0b3ad2359e1983ecb5ed35c0c62034731fe414ca23043299e670fbf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME Dup of ConsoleWriter \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba4acca8d12f17ac030df2060429a86b49a10ac66dc4875f69b3033131fbc96"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME This could be false-negative for some numpy types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8402d6dc97f4b9e03ca386bfd24d9457f5f1380788465ee24fc2b2e5a8b9827"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support log_every_n_step \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"162a3e3d092873e74b4a2df3f6f481623445f81ff561ebc65cf2727cdaf62794"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: save \u0026 reload \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4351afa6a260ed497bd8ca268c39f2981f722c082417696269e9c8ad8a1040"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: save \u0026 reload \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38801e9dd4a9c31d9a1ea4be0dacff5af996e24e8cf676ceda83c34d9eae6c6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME Same as ConsoleLogger, needs a refactor to eliminate code-dup \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"824af5cb7edcaed20d3ff498aeb0087ed77233c7b601a703ede62ca0032e5c5f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: this is temporary \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"1484836a52e3f386d90988e6f14918f4199b7f9f753e33e9516f7da6791b7a0c"}},{"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":"qlib/rl/trainer/trainer.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60e9592e8f409311c905bdcd410257e66062625af001dee698a61035409689d"}},{"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":"qlib/contrib/model/linear.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"70145e5db9094f79b97549b1dedc1a595295cd83a5bda1c0da1b9e4fe8b1c91a"}},{"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":"qlib/backtest/report.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"604dbaf0ecc8ff4e4b290524222c7cace08bdc427d624f4f1ef9ba42de766d24"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Explicitly delete this object to avoid memory leak. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/trainer/trainer.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bae25ef1a830329ed052e5648047882ca3b020f016fec1bfd21364776f83ca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Explicitly delete this object to avoid memory leak. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/trainer/trainer.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bdd98a539b84a776e3f9a59bdb9f2354a7cb451469dca3439f0f1f1991024a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Explicitly delete this object to avoid memory leak. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/trainer/trainer.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6052590fd17bf957da4a03b0b941a536ca4b0d91d7775fc658d79b25e5ef7a66"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: state_interpreter and action_interpreter are stateful (having a weakref of env), \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/trainer/trainer.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e75959c7a828679f37bc6589e73900e822b9da2fa0f3e2c6e7abc3fdcf8d3b0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: this is a workaround to make the log at least show somewhere. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/trainer/vessel.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9ea759682d73421bf4a94f6ae0ad97a8a53fffd0f15b638d58d7c7b7985e78"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: A fake state, used to pass \u0060check_nan_observation\u0060. Find a better way in the future. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/interpreter.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"364d847278321e947162bac1aa171b15b830730645d122cdc505caf9a88b65f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support arbitrary length index \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/interpreter.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1dca0135ea60ba57f8599bc5d990842bda121774228003d62ff97aced65b5d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: For compatibility with older versions of test scripts (tests/rl/test_saoe_simple.py) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"271c8ee67904c0dd1de4f78ab76f2272110ea5b09cf87b71d6f0d04ce6d8569a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: In the future, we should modify the data format used by the test script, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6429bdd60ceb8521acafb8110d578cfa6324fda81397dd5a11dd3db7630adcab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: and then delete this branch. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2d7a94aa6cad65de0f2418501cd2d5d7145393c25a94b9b1b725289372e9e0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: implement this logic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/data/native.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d4b763a28282237d538ca4abd91a054ced456a0f0488e2bdc2198303ad183b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: merge with qlib/backtest/high_performance_ds.py \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/data/pickle_styled.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f5df662b6847087a9cd4c7aba2576afaa0f157c13261ebc90786b4c5d30a1c"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: for qlib v0.8 \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":"qlib/rl/contrib/backtest.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b3deda75f63ac2569c47b0f151abe7ba8749959c0767a252986c0a70f46216"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We only load ticks index once based on the assumption that ticks index of different dates \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/contrib/train_onpolicy.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"71961a6eda27a3228de8b32d6eed311e4631f038b7fbaa9de0ec26b0d6f6da2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: in one experiment are all the same. If that assumption is not hold, we need to load ticks index \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/contrib/train_onpolicy.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05b558fb94d387f261e2f07e477f9a304a9b09da621e7e6281680a9fb82b32b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: of all dates. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/contrib/train_onpolicy.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c01d1a776f91601ac81c6c9ad2e743530e1702b1011e61f77a75307390c61a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: forward operator like Ref($close, -1) is not supported yet. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/base.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"56693f137edea2572a621680e41725088a07df8770d255a2c6c5b5f5bdbff49b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: thread safe?__setitem__ failure might cause inconsistent size? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c58432f7f819ce1a175d9f2d8fb9c436ba4094208ec8beefbdc6ebd839d4c07"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Because read_lock was canceled when reading the cache, multiple processes may have read and write exceptions here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"9462b6aa3668c9f1498453d8409bb9b0f733b3c38ccde1c1ce90b9f169bf4b1b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Removing the reader lock may result in conflicts. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"706d7dc5c7da4c8bb14eb1e5fdba2a40cfdb900fc1025c2758527ef7433f6d04"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Multiple readers may result in error visit number \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e82cb913f125b27d6452c8d7735edecbda1041faa89ab3c4b0e4a745a2329e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: The cache after resample, when read again and intercepted with end_time, results in incomplete data date \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b2eac0dab9b1fe05991b512b4beb25bbc882a63b6215acf710a3e20a91400e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: The cache after resample, when read again and intercepted with end_time, results in incomplete data date \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32c16a1238a7d460dada431a265b8de673d79e5bd512cbb6f8315787183e470"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: The cache after resample, when read again and intercepted with end_time, results in incomplete data date \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab79946b2870a461fe06194ea0b1593c9b9634e0033a1cad3c3cc2d92c0fb7ac"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: The cache after resample, when read again and intercepted with end_time, results in incomplete data date \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/data.py"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fbd01a59b71be669888efe84dfd423dcd4652c080c077aed2d73d4150d2796"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fast read index from the disk. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/cache.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc23f4468341c5022714478221cf74e1271dee72b988dd8f65d036870ef5499b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: qlib-server support inst_processors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/data.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31fe7cb2d68e9a5a72a106086d45ae6119896a4e1e08091f4066bf4cf2a87cc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Windows OS or MacOS using spawn: https://docs.python.org/3.8/library/multiprocessing.html?highlight=spawn#contexts-and-start-methods"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/data.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9e4b6936077b680791e888a001fbf406c00fa602008b5988e6ffc2e009847f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add PIT backend file storage \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/data.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ab2b034bd1a887bc52441ee7d83d8ad97f8d7b22b3d73eb2871550a3f3f14e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support inst_processors, need to change the code of qlib-server at the same time \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/data.py"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"388ef90bf7bbb2b0fe0ba252e4e339bf0522fc195a4d5feab6c69edd964cedef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO:  More precision types should be 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":"qlib/data/ops.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a00efdaaa2e757e2a6f9b0f33b455cedc6a0a0ab80e22401999045bde4a57eb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: How to make this accurate and efficiently? Or  should we \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/ops.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4b9739f3af5590abbc87df3b4e3706c02a948e151b9c53fd89e25604b75274"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: implement in Cython \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/ops.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a371d33e46282581ea2dc5d0937c91d0401e1576d43534c711f8de3549e94411"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: implement in Cython \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/ops.py"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"6760075ca36ba29a49891df9cfd2711cb306a5b7f2bdfafe207eb72e52a81975"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: in what case will a const be passed into \u0060__init__\u0060 as \u0060feature_left\u0060 or \u0060feature_right\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/ops.py"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b1d9e8826d3f154374eca56c384f19c226ab09cedb947ee18b4e5a07710fad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make it 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":"qlib/data/storage/file_storage.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"71433c96716bb4d0e6e1221dee021d530b53021287b47df51fcb19fdbce91c0d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: The performance of this line is not good \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/__init__.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a744f130773eec2c654b3170558ed2e3168d5a76fe63eb300f6eedfd1049035"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # 2) In case of precision problems. We use np.float64. # TODO: I\u0027m not sure if whether np.float64 will result in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/__init__.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a6693118bde3d7777dd9b6d5fd161e1d9c2dce13b2aa774b5478afe4a18698"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: cache \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/handler.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbce78462e65df65cbe447d5ab4c7656233a27c253b430ea81db429eb274fa5f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: fetching by time first will be more friendly to \u0060proc_func\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/handler.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea82b58dd3af12091f474e8bdd24963259194706127082b60d88fea312ffa52"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Be able to cache handler data. Save the memory for data processing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/handler.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98d954c8451698eb86aad440509c352b751efcb10b4f6d9063fcad54fd5da39"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Such behavior is very weird \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/processor.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc3b2e99b920c1162ddd1ab231483b870e10d64efdf06c2d4a99be612ffa8fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Qlib use None to represent trading suspension. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/order_generator.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"364d52e1158e3153fc73c0df2f9bdcd707dd9278f0f1b93983d3b7cb1f80cc57"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this can\u0027t be online \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"6852277a0b187a443da68369f46e057b207b7c85442caadb097fe908b8906172"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this is a trade_range level limitation. We\u0027ll implement a more detailed limitation later. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeeae8c6506275f8aadf17cb0985573d80f0dac2497d73e8787b6201607d6ee0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: currently we assume fullly invest in the stocks, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/optimizer/enhanced_indexing.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d16e2a9b7910137e8497716b0018ff0b31fce92f143b1bc6bfaea0aa61eb5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: mlflow does not support permanently delete experiment \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/rolling/base.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"764b864539b88846282f3c778cfc9fe41265e1cb1e570b1a2c7ff67fddfcbada"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: transfer this feature to other analysers \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/data/ana.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d8ce8064509821c204f9dac7bf53ece914a78f0ada8a740ea408832a9524b6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: support HIGH-FREQ \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/cumulative_return.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf605f4d1a0c54ed602221391e1a620627917e5bab2a1affdcdbf94ead4d7c8f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: support HIGH-FREQ \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/rank_label.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"06cf3f3ce8667279d186f15a6713a60c37d93db460481befbbcf847fdf3f00e1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: After the stock is bought and sold, the rise and fall of the next trading day are calculated. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/parse_position.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df1d80c16a6a0725dfb02efce43a1da5ea03896c305662908fa3790cab7b599"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: If the trading day of a month is less than 3 days, a breakpoint will appear in the graph \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/risk_analysis.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cd3c755f3ee71f1c4d4aba8cc37bb610f0edbe2f0f87d11cc2bd4ac5fcf70e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Infer Key is a more reasonable key. But it requires more detailed processing on label processing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_nn.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c215d6b727317b640540f69792bba6d8ced50050d01e68458725cbf171a85b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: memory issue in this step \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/dataset.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ae8d059cc9e6d22f1d3cd62aeeda9a06db9e058dd48de105b3ef66f4443725"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: set device: I think this is not necessary to converting data format. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/dataset.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a152f870eb2825a0dcdf70cecab6e594b4f5c4ff1b30fd2e4629726afe48acf0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: if the handler is shared, how to avoid the explosion of the memroy. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/dataset.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca7998cde24ecebe1c870024531bd63580b91c2fe25d82db07a3ad562ae83fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: handling TSDataSampler \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/model.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e869f41de6bcae83aeb237814d0af1395214155a4d48fe1cdcacd796b6ba0250"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: get test tasks for just checking the performance \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/model.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aebe68261b4ea7f002c801b5986843df448d0148e576a261a6fad30292aff5a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: just for fake \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/utils.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"48803a4c4a8bd6d689305c7ccec07d2efc3642005f88444e9521c4fab5d570a6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: The clip_weight is useless here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/utils.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"52af3bb7684b7cea1726a1b18ac78bbb6b0dc16c077167e631c11168ba8f2674"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: So if you want to use arctic-based provider, please install arctic manually \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/data.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2d06d440ac6503a011eeab5c202a91f0a7391e5d6a187f8c68bbd67b089692"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this will result in frequently connecting the server and performance issue \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/data.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45ca08afa1bd0b958c589822f706042de14ccffba8993dcc94e6838daf0eb19"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: currently we cannot support switching from \u0060_learn\u0060 to \u0060_infer\u0060 for inference \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/dataset.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"160966dccf166ca19e66495f3a41a0298418fa4b6306f894cc839e50aeead712"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: behave more like pandas when multiindex \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/utils/sepdf.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96249d109d5a6065f54d62fbd297e1d5951dc8bea667701dff80e7b547c8678"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: consider the join behavior \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/utils/sepdf.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5ab16182fb7b648451bd21fda18fa0ab775d6429dc7a01169f65189e8d2df6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: is very strange pass benchmark_config in the account (maybe for report) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/__init__.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f671576c19b9b021e962230b749604029607aa597a2d01d821f9afb957dbfa4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: supporting polymorphism for account \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/account.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e75d9e17fbfaad489084d24669eb55106e97e903376a88cd2d990f833a57b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: will skip empty decisions make it faster?  \u0060outer_trade_decision.empty():\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/account.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a3de3ae09d3cd5f2d7aac9d4cc65a6c26899876babfcd4726c5f7c0e799c13"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: create order for unadjusted amount order \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/decision.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ba73e0961832a533d9b1223c2f97f0b194c0a89e04ed28e55918bb69b4729b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: the quote, trade_dates, codes are not necessary. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/exchange.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"900dc57c21d0ec1443e4dccac59c6b9487cf67a5842bc1f22437e7a078976d61"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: the adjusted cost ratio can be overestimated as deal_amount will be clipped in the next steps \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/exchange.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18b396ba114a26647d743cf1425f5cb6cfdd29f4ba28e48b4fbb9eff2e57641"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: assert trade_val == 0, f\u0022trade_val != 0, total_trade_val: {total_trade_val}; order info: {order}\u0022 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/exchange.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d9eb0f6bded0c1016c5a2de172b98fd62dedb2ec3709384703fdf4294d8d75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make the trading shortable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/exchange.py"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"7927257084cb6220c055029de0c5b0a55afa0be6e629195e7c80d280292d6421"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: always is None for now? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/executor.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7453f6f393e811b3151840599dfb0fd9f444b4473c1b0140f74123404e6cbe0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: TT_SERIAL \u0026 TT_PARAL will be replaced by feature fix_pos now. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/executor.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae7d56406603e1a4f47a2b3c4e84bbafb2898a6dcab0dbaab082064ec38d85c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: why not call the method of data directly? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/high_performance_ds.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee58733cf6030a1f8af583e5d2faf1b80d0637286e0207687a037673a347bdf2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: I\u0027ve never seen that this method was called. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/high_performance_ds.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9507cef007caac3cbadb457772391180856a96cf1bf31b399bcacc71dacd5026"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this function is a little weird. The weight data in the position is in a wrong state after dealing order \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/position.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"174d84a69401952b631f22b99d04b69170ef2895419d6fc444c48040b73c123b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check type of \u0060bar\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/position.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd5afb5cfbddeedc7de18189ede29016c9334a82a05d8e4b9ae5578e942695a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: the storage of weights should be implemented in a more elegent way \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/profit_attribution.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"419b7b903c7d6e7bdb6d3e913939c50dcec7ddff3fbfbe87e5de3a2f9caf8bfb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: The benchmark is not consistent with the filename in instruments. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/profit_attribution.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee8462762b3007a0358f95e7c2680b1164a7d26b5206b52e2f1c658ffcd59a7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: In current version.  Some attributes(such as market_value) of some \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/profit_attribution.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48888af8cc01696b1666f8c609bec9f532c6b2f593e01d0f51f2f9df50ad960"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: some attributes of some suspend stock is NAN. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/profit_attribution.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac29c834b9ecb20f68129f68cdd125d723c420ffa373d6466b4388ef8b683946"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this is not supported now!!!!! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/report.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc84d144f74e6a538e5f5ddc70f093a13cb6692ad89e171ee1961904767d439b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: I think there are potentials to be optimized \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/report.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"37de50e99c53bbe1e3c00e3983c2859d63b412ef492f78b0f4d0f1a444fcb3b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this method is not included in the framework and could be refactor later \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/signal.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2c4684f752d1b0f2314a1ed93fc5a2025b32d6bdfa37f9565bfd7e78f4417b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: FIX ME! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/run_all_model.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1e89a27582a8c8168b200ac4970079a10b1825c769e969deb2e3fe4cda4927"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: FIX ME! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/run_all_model.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63ca0008005582101f1a57f983aa677e28b9a43b049c8d8f7fde48ea3e44e65"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: FIX ME! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/run_all_model.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b262d18a8d0094b8ad2e23bdc36cf47b650f3339b7665b61c62c9cdbe8526b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: FIX ME! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/run_all_model.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff27ccccff3e40c2f9841ff4b51291113ff300f6cd4721f8bc86b6b0a2cd4c0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: FIX ME! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/run_all_model.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c82ce0cf60fe8ec83d1ac6b93778ddc18afa1730a83807a5a51286b4362f6f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: FIX ME! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/run_all_model.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bdc913e5bf782cd27482a38d340d28482009262be8ffec459db14a93477e53"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support all the trainers: TrainerR, TrainerRM, DelayTrainerR \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/online_srv/online_management_simulate.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fd467aa922845e570956a553989f241ecb9180d9953aea53025715a54f4726"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: only can call after finishing simulation when using DelayTrainerRM, or there will be some exception. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/online_srv/online_management_simulate.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5f75198c9c99a19f3fda661c2c2f978fa28a341f2f26812ddf3b44a2b87b5d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: better train/eval mode design \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/benchmarks/TRA/src/dataset.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0c390b89fea21f0aab2b27e211b41c7814839c825bff058a7e15764fa208c0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: implementing saving tensorflow models \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/benchmarks/TFT/tft.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c3f0efdaf589f2bec55c8f8978f08a25eb2aafd6972dd8d90384a2f815f6fd"}},{"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 127)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f93f7a2c78f190233679ac8202a9f8e691d2305d697b777ee579589e9c4bff1"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 10 project(s) overshoot their size bounds, lowering Project Cohesion to 8.0/10. The most over is \u0060(repository root)\u0060 (51692 LoC, 651 module-visible types across 52 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":"D27","level":"note","message":{"text":"Scattered collaborators: 69 % of calls cross a namespace and only 50 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"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":"338407871e9c53d2625a5754ccc8f84f16e799149817c1d1e310aef9e6213485"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9371d113dd7c77de7dbf2fa3ff9fac2f1420e36546ecaa02ff6bec09be628505"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55fdf68798fb514175ecf326e1060989697835d5393914714ba3c829d60e607a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f2ad84f8feeae7c52e3c528d3a1954b11aa6d3af6fbc48c977fa8238c120ec2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"48e8f916a59fb3a1e7c2686d475d1ec8eee63e321b8c9306b9676176dd9a824d"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"106c66b520a290875a9ac08728dc8a72474ca65428e79af6d2d3b8d90c16da11"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a1f38185696faae86eaf270d3429be073f9823318020cb9d1054fff2a2e1862"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"399890a87fe53c3e400d09d43b0c2345b8b98b2ec780f3c68ccb550b83c7d8d8"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16b22e4bf4740651dc4b42c4da6d9cfcaadca81562a3e26565435aa3f9d075a7"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6e507d17b069a198bc7e39012cf9cc3961b1f7243a5cbef57a410147a525971b"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa90e87628322e9f4139cc14c8b51a1280c8cffca896a31c3f54657b8354eda5"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"200fe62be0b631e5ae4c9b54e537f12003e079bbd0223c842f1e40a612a54cdf"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f903ef248d3482850326079d4e7e8fda46efb089553716d150262695456cdb03"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6848005c858eced67835b68d711ad2c47461388d3afacd71764951999a05c603"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1461e20854829dcffab6a746de6c3a03a4d5128329bc684619829d516d359d7a"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d923febc8910de1326c227a47ecc5754c45234ca55659d33b0136f44ba8de27d"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f84cc8300e68e4810b4baa372bc7123ac9229d77a026f6bac4103bb5cae150"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ddfa7783a91b92a99924cc19747993306b1c0c9aea118dd933948afae686bd5f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55a0428c3547d6c2481a01cf971c566af5463734424eed062a2827d9a8805dce"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cf02a545f499a817fa62431772a54df0c4c1decea973a29d0a20a242f42718f9"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a7b060b7b31f7db47b717b7b57d41e707676a77cd991aa7e0e419df2f7d04b6"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9b2efe63f887ce7f6dbaa6cd8e532121cf029a660ac6a94e371e1154318f3e1"},"properties":{"dependency":{"package":"torch","version":"1.10.0","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2022-45907","BIT-pytorch-2024-31580","BIT-pytorch-2024-31583","BIT-pytorch-2024-31584","BIT-pytorch-2024-48063","BIT-pytorch-2025-2148","BIT-pytorch-2025-2149","BIT-pytorch-2025-2953","BIT-pytorch-2025-2998","BIT-pytorch-2025-2999","BIT-pytorch-2025-3000","BIT-pytorch-2025-3001","BIT-pytorch-2025-32434","BIT-pytorch-2025-3730","BIT-pytorch-2025-46148","BIT-pytorch-2025-55551","BIT-pytorch-2025-55552","BIT-pytorch-2025-55553","BIT-pytorch-2025-55554","BIT-pytorch-2025-55557","BIT-pytorch-2025-55558","BIT-pytorch-2025-55560","BIT-pytorch-2026-24747","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2022-43015","PYSEC-2024-250","PYSEC-2024-251","PYSEC-2024-252","PYSEC-2024-259","PYSEC-2024-328","PYSEC-2025-189","PYSEC-2025-190","PYSEC-2025-191","PYSEC-2025-192","PYSEC-2025-193","PYSEC-2025-194","PYSEC-2025-195","PYSEC-2025-198","PYSEC-2025-203","PYSEC-2025-204","PYSEC-2025-205","PYSEC-2025-206","PYSEC-2025-207","PYSEC-2025-208","PYSEC-2025-209","PYSEC-2025-41","PYSEC-2026-139","PYSEC-2026-1856","PYSEC-2026-1970","PYSEC-2026-2286"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4664aabaa1da5e19b8dbe819308fd9078f8585e53fc3ac3c648c435ae222fdb9"},"properties":{"dependency":{"package":"certifi","version":"2022.12.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2023-135","PYSEC-2024-230","PYSEC-2026-4320"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6f1a6244af52f610e6e99730c6b74348e2925cf7420324cf92384b463ca4ad08"},"properties":{"dependency":{"package":"h11","version":"0.13.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-348"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d80b764f7dae0cb4a67662d293cbf4934d69399c84a9fcc18202052f73b371c6"},"properties":{"dependency":{"package":"lightgbm","version":"3.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2024-231"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22ee93bb5b9984668cfd3ba9e2d113f2d17782b74e790ecd1340925860568e2f"},"properties":{"dependency":{"package":"cryptography","version":"36.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2023-11","PYSEC-2023-254","PYSEC-2026-1283","PYSEC-2026-1285","PYSEC-2026-2141","PYSEC-2026-35","PYSEC-2026-3553","PYSEC-2026-3554","PYSEC-2026-800","RUSTSEC-2023-0006"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"26bd6ada488f63be1e90d1f1e08724b53cae6b824d7cab78c7d5e71ee8b61fe1"},"properties":{"dependency":{"package":"lxml","version":"4.9.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-87"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"948e2414a2cc73b02c4a0ec269d02c8d1af646bff0822214776c18f7ecdf0054"},"properties":{"dependency":{"package":"pyopenssl","version":"22.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-2268","PYSEC-2026-2269"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c2530b137a1776f6f2fd505efdc5333d42ca866786b42c902ed3e4690c23796"},"properties":{"dependency":{"package":"urllib3","version":"1.26.19","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-141","PYSEC-2026-1994","PYSEC-2026-1996","PYSEC-2026-1998","PYSEC-2026-1999","PYSEC-2026-4175","PYSEC-2026-4177"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"23db6efe76974f711065c3e574df4684781b18449dd6f7315f348d8c06b034b8"},"properties":{"dependency":{"package":"numpy","version":"1.21.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2021-855"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"398dfbae87b6506877aa7eba7fdc167954c8da60129714bc80bfbc213147e1b8"},"properties":{"dependency":{"package":"idna","version":"3.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2024-60","PYSEC-2026-215"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0388a8a6bf6bc6951c9bb958130df8eccdebb82f3c289c24321760d5a0a29cef"},"properties":{"dependency":{"package":"requests","version":"2.27.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2023-74","PYSEC-2026-1872","PYSEC-2026-1873","PYSEC-2026-2275"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d4e2783a23e83163bebef27724c84c43438087f583e747a7982abde671ea6194"},"properties":{"dependency":{"package":"tqdm","version":"4.63.0","advisory":"PYSEC-2026-1976","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"scripts/data_collector/br_index/collector.py","line":10}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"88392b415eed750d6a76a80011af6dccce1a8c3c992b08abe9f33b7b75b89cab"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"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":"6c9bd328f1425e4185802e2cb388fc5dec17b2da92bc5227fa43622d89e747d7"}},{"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":"becbc5502f94878197b05d70c7ef15f1353fd99a90efcb824b9c43f11ae5ce7a"}},{"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":"03400874d601518163011eed910f9aa5e00eb019cf0566ef4de3c1acc82a453a"},"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":"96256332b86b3c18de68282ab3cbf761c06440dd72d1f8ec47fbbbba1daadafb"},"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":"46e4c1e50bef1b4b461966a1faaff693ddf10519994609b75ef415394e8514a1"},"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":"ef1afa2adb31bd6f23f06920a207559706374aebb7aca50ffd73b1161c785cc0"},"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":"D34","level":"note","message":{"text":"Concentrated knowledge decay: 167 of 182 significant files have no living knowledge, while the repository is still being changed at a low rate (4 commit(s) in the last 90 days) \u2014 so this is one repo-wide knowledge-decay state, not 167 separate risks. Counted over 182 of the 248 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"008bd8d3156a7f5206da709f59f1f87af76671c6b9becea72c8c9cffbcbd4f8e"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/exchange.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c095fa5922d37415a3dd2aa3841370948f057640154a246d0c83a3a396875b"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/data_collector/yahoo/collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2346d35f438fe7054e3c938812181487a5d21a2780c8d824a6f1662df98d2e41"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tra.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2f66405efb97601203e66935578332ba0a4ba1a43498c2210a417f5f35c53f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d9c3a67469629a221397185edd5d55c7c8fcb34cdc070224d206579b01437f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/ops.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f1fd7a07ebad789a4562fb41570f785dc81ca0cf24bdb255fe59799ab6210d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f38fda684bd701f2906d53f88b9c3a8f1a9a385c44045fa13da41d8d00f74d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/rule_strategy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02afe607b3d3e13c916e5ab0531ccb7f4ed90a1ecc4272fe369ddff0c9e4e844"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/handler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c291b8c3f01ae64c53a705ff45a64f6fac93b6f22479db2788011534dafbd0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/report.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7102ca82c6506432d9fe53f868c2083592794dfda76e14514f93c5445dfdb1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_adarnn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb778d202b75600be7ad7c5a4a003a794c86dadfe8facdfdab668779dbe0bcfa"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6737c04a9475c9ea0adcf608196052541784cc3de510362f32cf4fd2436b1dde"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/executor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c271c476fbd94e44953bc3386ddc2637edfc3b14582a8863a10ece50f6fedc13"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f543809b51bd1dea096749990594a3e235d7ddc1b8ec124127d60fb5daf926d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/trainer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a576e80259029be46700e699d9c751293d6eb737fba2f2e3d10d84b6a8fa45"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/high_performance_ds.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be0bfc84f238c9edd358558e8c1c0a61578175443a0d7197a26dcc809750248"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tabnet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48d85929a3e80a813b33b4af69673d8ccf86d23b46406e6d43bb2a3920b8623"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/index_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4675fb88ccf008abcd20647d515305c01dda9bd2c54c906f50ac6208aded4913"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/signal_strategy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6929757e67f4019980942f409765846fe65254fcaa654736d160707b55da883a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/decision.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae73b25c4eb57f2f1c8fc8a6db1708fc9ec9ad629ef0b018dd3cb3ba89d7d36"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/dump_bin.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df661c53e3bc8c7cc19e0e9aef402a207a9358dacf600ccb1a5bd8ad0e81898"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_add.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71a77469e404ab198e0aaea463a97f8887be3635fe52227cd179016830417d3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/strategy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71fc58ebc238c9d293fc2b358758a9d024f7b3e7817caaeb29aee5ec0e7fbe8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_hist.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2c730f43f1b367716a5a28de445a7028be80af47d7847d817f20d9c6bb944e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/recorder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbbbd60268181db922cd6823b509eaee7766830860b69e0749b112304b74ae6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/position.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f54e4a7bee90b15d0ec681e0bdd6fb005247b3e175946ef650b27936c46764d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b043a4fe2fcc3261957201d2cf95b4c8037cb866d411f7a20a970d4cf518dbf4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/highfreq_handler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d44ec19efd808fa1cd41c48154342234c9f8788b1319813ceb2b4109766698c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/log.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcf89a965e2714700d8cd1c5c633f8b96ca2ee27ff91cfc7a2c117a6e5b17e6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/task/manage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d160260e92d5c6d7372987d3b91ac19e6c49aa1af936c118f74982240218af9c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/rolling/ddgda.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4f46ba19ec8e81d8ca1686067fd03a3306405568f78d3c80031129d2af8475"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/account.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8256642191da007595abbe0a6d01115666c88d5ca710066962c1c56a05ecd599"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/expm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e5db5934a6f35925d4416623f7b6ea791fc5180e7f444d8bd8754f4294dca2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b154cdc5292ffd1e88690c846a18622515a35d3a2b03b8a22b2918793d8c165c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_krnn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"619bdb29b5074f7fe2c09a9ca776a219f5b0ca1bf8be216024e1354aafab0c17"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dd6cff3b2bcb4f42625caab1993b6a5851751a232d83023a1c935155043b64"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/cn_index/collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c1cbdb7e24f8bba10f39a9c418c86f649f1741e07cdcc9c38f1ceec2847767"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_sfm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbc097602f482a8482e7028413f9ed580f0b6566603877e81bc52bec7257252"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_igmtf.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a17621280bf8f5e93919a75e73475510f56b26d40204c9abfaf6ef38a11e042"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/exp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd71006c20bf0a55b11298ea307ec72873fd1314dabacdc8eeda8dfe0e9e7b71"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/profit_attribution.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7535ad38ad4a4264e7f35d6dd03a365d0fd52a906ce61c7987e4adf3d219c9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/evaluate.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d361786f7e4ddabe8eb2436a5a0f8e4b2c6cbaee759798c747528420bba929d8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/simulator_simple.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f54d222da65980e34fbe76404238bc4be22fa2423676b59ebe6e40a9c4d86ad"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/storage/storage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6b1338116da4bae228b2ca9cca97fc1db3f624d48aff265603e244e4ad7b29"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/processor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca84511148214484e86f1a7768fa2beb886fab6a5710d8e0460e1369a6cd5876"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/highfreq_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15336980544e29ece39f2f37cb4a85211252d2317a58231d9b0ed70c5004ba5b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tcts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6dafccec24ffa3e011cb5d91929fe3a1f17bb3212b11ac96aef3c906df3fa9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d1bfec092e8f45523f03cc2d2bec6b8b4709952264aacb45e873ca9c42ddec"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/trainer/trainer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f639d4c4652ba2bdc80b9bf5aff00427eaf591d8dd8a6316bae34793a7b1eab1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/finite_env.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2b50a1f5a9b496a245dfa031fdfa68b01e1e7a754c2cfe14c948e6f8e4a088"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats_ts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91854faee04737165c7fc61efc1c6be467a770ab0ae88e42dcb62dd2e82b797"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/online/operator.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5246b578f1f37f7bcd6302ef037badb3f1d19bc6b33113d781399e7fbcf4f4f2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gats.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64a7b454bb40433b62e68c91c4bad53c508a876379212615bed1f219d8df4ff"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_general_nn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ad467bbd18e49f38b0bbb760cb080e3b91c23fdfa744c7ed3aed77e6ed6129"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/double_ensemble.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b306ec40adf6a2518f26534a555265053df152e1fc2f389387eec9c916e06ec5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_model/analysis_model_performance.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00fed91ec1914aadeaec18121fa6759891c8ef84b76f61f6307d2fd07e78fa8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/baostock_5min/collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2a6051987c5452aa95a0e6ef37837d2767266c452ac9ad8056d415d83fb697"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/task/gen.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48b934d8339c5f4cf7849200c4afc7696f38d4d63b6103b97572820227ad792"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11513389ca713ed35bf0ab81c81b7b16294859279d680b199bef4627462b50d6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/time.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba693a81274566bb13fe9c0a47e9cd0861aec0d80692fb701c52a5f14fe2b3a0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm_ts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5010ae9d735b2d50c488175a80e31b84a1b2b1c2d5902cfd6db16cb4e6d77586"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_sandwich.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"357c9cd1dd4eb8409bec081aed4c96077d9107c7bbdee90f68a975ecf37c2ecd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/task/collect.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cb43e29114faa3111c509a8058c572dd24492c11de257b70b40fa691bd10ab"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/trainer/callbacks.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75bbb047ae78cbb10a1bf3a79fd0c115bacf1817a15218ce1e8bcbb0a4dec64"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/rolling/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f34137c4d5c1afa55643c68a7016c60f2533d15fb0a98d10ee4d042e2c8e56"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/update.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c28304ee60d90ad39066430fdf8d5e2094531ab4329fc6830d05a896d065de"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_alstm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3a14c5f7197aa160236d972d4a315661d3966f9a56cb004ca62072105c3596"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/dump_pit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7f39f8f70634ceff6d3cd17b24d3289fe31238b204f9c4675ef3f0b92fd109"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/graph.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e87bc33220e97dc1c316294e51ac8a0eb523f2417d3ccdf7817fc6a6807312"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/strategy/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e14f97bbd2bb633bc0f93558e8368c7a5c9ecb288b68cdfd1b99cc62835f2a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"332433cf3bbef8877e2f770763b329315ae561521c1aef42286b16b9223f9544"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/risk_analysis.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b806096df3425c9e2cca25c3fc1410ab3dd230c121ec969347436fe6dcab1378"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/pit/collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e7cecb1661fdd3fc1f3b69ea6b02b0a3e4d186284fa2d403d1cd38c2b9fb3b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gru.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83c9fc49593f6eb93be2f16a3ade076e2c9a1eff9d28031523b4ea2d940712b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/data/pickle_styled.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9abc78cf9f88a9be4ca1d80c9df30edf3f83ef7a3bd756d7736add06024e5f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"934c7bf2438f3a0b1aeaf99aade9716ccaf3f07f6ca6b40a0b7fba099a4b46fe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/riskmodel/shrink.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2792c9f69fa79770d08e12e0fdadfba0f1f08046d59670ac2e79969134b3699"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_localformer_ts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76603bde1a1b38acbd72f410141f58eb53b4afd452477bbd67e1dd9c392e54d3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/us_index/collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff6761e9505f7c5aa6e877f68441492c8e5c24530ae528f2323929a8d8d9113"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/br_index/collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd069f40a7fde70e6c023caa4332afefd7fc83e607caf90336d7d85328c3b15f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/contrib/train_onpolicy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcd88417076ce91c429ff742c9b798a28e08415ea1e59dbc25cfd692d499fe2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/crypto/collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d560a70927fe5184584d8b711879973262e57a150d839e76957b5dc2f150c6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/paral.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40071c6d8d4c24ebdd54746a0528842c5594fcdabb9c0014080f5a69fa691bb2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/fund/collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e832284fa9e9a75e04e88b2af65d9d565f42109ea02f44ddaa4f5e1e47a447"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/task/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee077db014f308c91a513199c34c8ec10788c51092a945b6453a01fc7a34d69"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/trainer/vessel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e286b5c4205e601c6883267b5bc998ba36a462a8d325d8d9efe92604087fef4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_transformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbbae4db985cca831e2537136ec4281df0b40bd11c00b790d6a6d5e898377b1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_gru_ts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be72436a225785c4bb9a153fff80a4558c983b0a2b273890b350b35a4692c7b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/env_wrapper.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb3b48588c670a5a2c4d5be931e3a96576cc2099015dced863a80c37674b43e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/interpreter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06261dd51ff1c4fe283cf1d30d8da6f0c68022e681cb708542746358c87c5a1f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_lstm_ts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec362fbdf86b0bb283b6997454db1836e109f8dad231a651d67576efbac486e1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tcn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"640cfcd8f158eacb3fdb8e954153b2a3a74e0b1df505b989e8ac7f81af96713f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/cumulative_return.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"153a851cf1805f1a2a474818bc472f965ecfe414ee209b07e633fd4e695bda52"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_lstm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56efbc787fd68bddb15195cc9429dd7534a2cc0c403c95fc1c784740051eeece"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/resam.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c6d0ef4b3e3e858927d2bd85061cb0d1ec72c750b0359bcb138b4b7246001a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_transformer_ts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe36c30b5dfb758515401ea7418fe1502ed44a67f385b4901e30e1fe9ee4bc7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/pytorch_tcn_ts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f01af5c00cb2582667e02db51e83f3af674502e0555bf42689ce2a02985cbd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/strategy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c711fae45aeafca53c3275f8795eca0eae92dd2789f11c920f9986c027547fb9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/optimizer/optimizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e4243f903b39f1ff3e1bb3d77e1b7c6011caca77f78f4b9dc00487a2d0f13f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/report.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bb3028f3c5806981dd848558896fab7dc27b4283deefe874b3bc6bd114ed60"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/index.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d8653c647038ffb0319d76a64e66b3727f33f1f8af7eb7a8f2fb3bb21f62a9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7378e7c0a734c9b891702a01713e7666daa1e66f396f06f668f30a560f200b7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/order_generator.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c774ccadf4337d4c920f938b2337add9e8819aa8e0d45158fc95e79328e9857e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/ops/high_freq.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"851003cabc36628cd42691f3f5f10254ad09226477ca660c9c8b6c334596908a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/tuner/tuner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f354396abd046e3b3de22bd45de2ec726ddbde63e05f0dd90cd869f0e04bb791"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/storage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b8bcf09da251bfe71f7eaea83086446e36b6c4d41d0c75578addf54d74cefc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/log.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5c5dd4547eddd044263243906b0196c158d718a3fa97cdd743c931e00ec3db"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/data/native.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae8d61ee28fc5b475de8c634c764adc70df6b89cb453f6a2c1172b560e15834"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/data/ana.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c80008868be7270bea7f5d1927591c784565785ced97dd05e1f6cae2ebd38d4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/policy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6c1096e980fc6ef026e443dc4d37d01d0543ab12a455449bf702495be0583f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/utils/sepdf.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b1fbef801ef06fbb9ed526a675e5b6923fde33e03c3fe2c0714328958af156"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/highfreq_gdbt_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2c6a113c10a42e62ba7be83c3ed6313a784d17a5f977c5849bb77623a59fc4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa494a0f49c5d5510866a4ef976e4b8a9a7cbd5fd49e0b2f7b22da93ce5e90f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3964bfed4365038ac6ec08cf5e7c081f1e4810aa477529cd2c653d045f103b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/eva/alpha.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30525b5377a9f23a91d6c245c1ea42f577aa1ab713d44e4f9d33a8b839104592"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/utils/data_queue.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3faa0e80c55f0553c63a2c88ae371bec9385d3a8756b894c0f543e554e4e6ab"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/parse_position.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"520cac368f830b59befa83a63a3a430b9b0c6e645831b8d4ccfa38ec71da20d8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/optimizer/enhanced_indexing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fca15fdfd0840185c9b88b292bbfa214b274450083a8f4eaff66c635365301c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/evaluate_portfolio.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1355aaf456da917f8e8c78bea14a8f86104a6abffdb7179d5201c63f14ebcb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/serial.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"721ad59e3d550c10801a008f84c7a9610c041030ee83e3a289b65f76f3068614"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/file.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9111e4c6f0835b4d64e713ddf440482e3206673f7fca53f1f20422354238ecaf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/check_dump_bin.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14616ef3d99c50347f9bfe70b8021ee9448dd1deba019c6f686e982aecb7c8bd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/online/manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8f98b7b3590faa0d93c2382190720879054b4b77f5565a2cf73fa847c7bd45"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/interpreter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9174884cc1195614f1de5cea9af09749a4e90d84050d4ad8a2442095b0fa749b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/handler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cce731ab83a308a2082f5a11e53e57602a2c08998fe342378c89ccd0f2b9b03"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/riskmodel/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a091597299e0beffd5aba6f58fd85c9f22dd95af1a20cdbf6e985232be34f6d8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/network.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75114de75e2175c0f04a0b29571a35102addf46ff5425998ebc19feee4e48637"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/processor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe615c8f50d7a32394fc0c22716cd45f8d2fbc726cf564f56e6bbbd1b1cea16"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/simulator_qlib.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda065ff026d65960d16d2be19b3992fb69c419faf56ee7f05e0348ae530d179"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/cli/run.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9eef30ca8e413e804a4001b8f80a2ed16ea062b0cb9a5a140b827067815844c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/ens/ensemble.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0efc644e0e6d5d6746c846a9d6c7ee7fec272ef5ca4113948ed90355c3467e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/strategy/cost_control.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55b9e0763457e2ab5be915f46dfd4d1e51b89397d29389a058924e86e79d9d2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/rank_label.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9ebd6b29f109c2ba922f255b09b83bf29854ab6580c3ed5f061462e745cbb5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/linear.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5846364aded7e70a5e2f9706bf390254eb5bad5bbd100ad15e94b28dc5ee614"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/future_calendar_collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"514ebb181f4820e682019d0a2aafa52bdd75faa0abfbe1819cd2f7732b294d96"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2710e3a773e36c28e95dc9f6c36ee74d52a475d22b3915115519c1bd3b6412d6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce6e469482f08f07a59c6194df57fb6f68568039bd8cd53207792cef35afd9b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/signal.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59af6a07089a28c247d9e62f7017b609757dca289cf84d31cec22caddc0224e3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/ens/group.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5807d3b716f9db0a7accff2793d899debb4aa546882e7399e5d87bf60301098d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/riskmodel/structured.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c5959bbb947feb120e4b1ae644c34da5b54c097eb7f904488e608562dae5d4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac82511f9c71726ed7d52e5100a3d9db9bac64d0749e3af4f231601521f3673"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/tuner/config.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b95a87ff7db949180cf87d791a72a1f6ab4d77ba72e2ed480040323c7ceb404"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/catboost_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8276979be96cd5bc86ffbc768ae111bf7523ef83bc77b17e2eb4ac7deb29097"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/state.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05c98791eb4cf80759e460eee52507dda5f664fe1bb877fff170bd3c9195ca0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/contrib/fill_cn_1min_data/fill_cn_1min_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8501a39c863d853553674981eda817b03bfc8288415553f36b0873816072e0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf97f86e1a06fcd13f0fcc7eea1b890745cc6b1c224a1697cb7bf2da59aecc2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/trainer/api.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80095ddf97ed3f7c6771c1185c57a78177c2366f0f2825d2031b4d670b83a6ee"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/order_execution/reward.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28eedda55e8f634a073e52f6bda6b9ba53996bcec77401b595fcd11dcae47dd7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/tuner/pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"623b8072fe80e493352c82ee9974c2daadda2637566e1941d32b2864663b1c04"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/contrib/naive_config_parser.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd09d22b567a860a96362d3f60879ac761c71cd172d6afd3f026b6512690cf60"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/objm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af624ceeab38f85c0b6fc5d481bc445fe24637f45d4dc9225124f8810c1b28b6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/workflow/record_temp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9079bbcf4a7a21aca2a0788bb7f6651060082fe52454a31212c54a8356b03e3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3814d95843a6d7c7dbca44280b8a9c7f52b706f86af90a6868bae7a00bbf1097"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/pit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d271e0f83794face4ab7066b190b5468d3c490e26666aeae539b565492bb84"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/online/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf0522073a9197f02a7d2a325595e1cc90ee682d8d35aa0823a7e3295b849db"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/riskmodel/poet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97de1a3d0829ff48bf3a2d09e39a74e50f31d308ef97c1a4d1d21dc9e008e794"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/data/integration.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d5411eacd0f9b124f51b74123cd190eaf414679e2cf61c914b1518bddad467"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/xgboost.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53b85ea6156173da2929d71195d61bffea956c2bf844ee29907e33941ce39b7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/data/highfreq_processor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f683cdf74f67f4e31475f23c57ebd5935807fe9445928fc136725e514a82d91a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/simulator.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66c7592ecf72f8ba5da92be494db42393a13f850456b1e36515aeb65805fe5b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/meta/data_selection/net.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41155a85cbd0134a4a85e8fd1ac76e6ba8f50a265389e513182a7b24a5c97d3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/online/user.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"320a88b3b1c16b78ec90fcd6f7fc7f355fdceedd7025cb4a62a770333d84e88d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have 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/data_collector/contrib/future_trading_date_collector/future_trading_date_collector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23dbbdd4702ad02a27c339b5c9f0fe14adc1bff80b00d91dc1d83d8ed8c828d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/model/meta/dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0210a099e172bb7e569e4cb96514ce717634ea6c70b326146be953523f9f0c10"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/reward.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4f8683ca6a64bed7fbba2a1092445a21bea38c29aca542d95fa054cb7c0fec"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/analysis_position/score_ic.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2a19d8197d94b58096859edb0d2f49824c9da733e365fcf57fc4512f8286e0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/tcn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31618423b43604198cd5eeac1644e0fddb2f2d92fd7649fba217377e7793e67"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/report/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbdb52b872c31174900b4ac7059def42dbaf04781be0bdfbab1c944e6bca325"}},{"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":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"beea56a1ac148cea496b938addb8dd0215e51f3f1193fc4ff70fb9b006b18f12"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e289ffe0e18c2def991fce935bfe4026e783b78a522e51c02bd93acd28a2406c"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"93dbc1a34659494f7df3fa8ea7c04cc030d37c92d21eda9ace3b669f351aa631"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"047adb00888062463db436855222fcf7d7bc4481e78e5f892970de4360a461f6"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fc5445989f2ed1a6cdd8ba1d81af8788542d376cfec71d00d96fee7fbe6ee193"},"taxa":[{"id":"CICD-SEC-5","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":"c5928b81075799790cb18fed2980a6b6e8aa5072772041c9951633efe8eb3542"},"taxa":[{"id":"CICD-SEC-1","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"CI formatting step cannot fail: \u0060make black\u0060 invokes black in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner\u0027s throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one \u2014 it enforces nothing, and no other step in this file reads the result. \u0060--check\u0060 is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/test_qlib_from_source.yml"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6ac148dc538a4dbe378f0999a8cf81de50492425bb8c6b91322a6083bb4df5"}},{"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 6 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/lint_title.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch npm/pip: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060npm\u0060, \u0060pip\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entries to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"49419e79e89d133e010295660fdca84fb1cea8cd62587bdc4a4c3daf07aff43a"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(self, \u0022_trade_exchange\u0022, None) or self.common_infra.get(\u0022trade_exchange\u0022)\u0060 appears character-identically in 2 files \u2014 qlib/backtest/executor.py, qlib/strategy/base.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/executor.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ce13bfcaf87815f53f8ce5ee3f1e7dcbaf4e62772801a66f166405e44e2ba8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(selector, (tuple, list)) and level is not None\u0060 appears character-identically in 2 files \u2014 qlib/data/dataset/handler.py, qlib/data/dataset/storage.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/data/dataset/handler.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"3474b2808d040dbb004cb3e9803abd314fd38ed3245a6c8b96834bb596c0b754"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060qlib_data_1d_dir is None or not Path(qlib_data_1d_dir).expanduser().exists()\u0060 appears character-identically in 2 files \u2014 scripts/data_collector/baostock_5min/collector.py, scripts/data_collector/yahoo/collector.py. It is one line, so the duplication detector\u0027s token 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/data_collector/baostock_5min/collector.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd31e231f20513b6d69becf18ec5c61ee8f439cc46fb7883fa1090b066b8596b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rec_filter_func is None or rec_filter_func(rec)\u0060 appears character-identically in 2 files \u2014 qlib/workflow/task/collect.py, qlib/workflow/task/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":"qlib/workflow/task/collect.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93209a9f6a69a7b4fb5ff041af688a3532586991ac8c6fc023061978ee5788f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060y_train.values.ndim == 2 and y_train.values.shape[1] == 1\u0060 appears character-identically in 4 files \u2014 qlib/contrib/model/catboost_model.py, qlib/contrib/model/double_ensemble.py, qlib/contrib/model/highfreq_gdbt_model.py, qlib/contrib/model/xgboost.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/contrib/model/catboost_model.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2b9202ee60ded65e0e782e50c31867ad22525509b012886e2de58cdfdc43dc"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060deepcopy_basic_type\u0060 is public and takes \u0060obj: object\u0060 from its caller, and it calls itself at line 58 (\u0060deepcopy_basic_type\u0060) with a piece of \u0060obj\u0060 (and at line 60, line 62) \u2014 and nowhere in \u0060deepcopy_basic_type\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060deepcopy_basic_type\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/data.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadbc430f47607a22b9b85022c284be3ebdc75b027b606a14fba47e8389c802b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060update_config\u0060 is public and takes \u0060base_config: dict\u0060 from its caller, and it calls itself at line 101 (\u0060update_config\u0060) with a piece of \u0060base_config\u0060 \u2014 and nowhere in \u0060update_config\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060update_config\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/utils/data.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e5e7b76c8d0c3d50414780a615c99ed27961da6a59450e4f58fe6ceccdbf8f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060merge_a_into_b\u0060 is public and takes \u0060a: dict\u0060 from its caller, and it calls itself at line 20 (\u0060merge_a_into_b\u0060) with a piece of \u0060a\u0060 \u2014 and nowhere in \u0060merge_a_into_b\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060merge_a_into_b\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/rl/contrib/naive_config_parser.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"09eb97d5c805a30040c9aeab225d6fe23b1af7cf331f46ed80549a638b4cc986"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 830 is called with an argument built by \u0060list(zip(vol_limit_num, vol_limit))\u0060 (line 830), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/backtest/exchange.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4d8815a211713ea460607335be0eb82fe685bfb8caad493aa04991c7e109f5"}},{"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":"qlib/log.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc8a8ef6febd36c89ed138890fd7a7aa76241ae2a3ede03e00d5dd3ddc3d5f6"}},{"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":"qlib/contrib/online/operator.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"704c23a830d54bfb991594c432101d8da67851f80f0c274cf637887409b4f91f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 68 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/__init__.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c563e4620f64444d619e0bdbad4c081ad5ca17960bf1258f8fab9611543eb0e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 72 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/__init__.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ef250730012edb8dbb166dc29d70c16f04064bfe720757b1838367104680d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 81 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":"qlib/__init__.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fa69f24920bb3109ab984ff105ad1ef79df2a5be6856efa586d6acd6183b5a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 84 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":"qlib/__init__.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3988552a5fe355c8f0dee9cbf9105d07cb50060353793ad0fed62719d60603"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 119 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/__init__.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f776c59b8abb61cbc57ce766c8d91763359199741c7030308bb9285e8af794b4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 185 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/__init__.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"115005e26b7d620bcf15ce542e6d67146bf1f0427566e0524b478ed982a61f40"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 313 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/__init__.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea520b420f31594ad77f02b041945e6f259b9bf864e1a733918dddd189e49e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 317 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":"qlib/__init__.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6a51d4966dc14ca836f9d017e63ce7c924f79f1963e47e230c4d85c3b65009"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 473 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":"qlib/config.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10326f93bbb1878476a3cca7bfcecfe28ac2cea65ad12d54801327146c7d36c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 498 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/config.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f468e32b65da4147ca1835933108b326e287c07c601884d1ef2d633b7a7537"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 143 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":"qlib/log.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"184c15e94967ead3255398d48e11cfeae0ba3f80b6f666756027f228ea54c8bc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 193 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/record_temp.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"748266146fd16b34ee07dd17584778cb9f6a75ef0ba9f7913f7d258c0d91361c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 204 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":"qlib/workflow/record_temp.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba23666153daadac271b6da3489a0909ec0730466165a55f66d98ab323ad819"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 527 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":"qlib/workflow/record_temp.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"105de6261e26b215599074d0dc7620cfd9c2274f800b3f55c48c96394a9b5051"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 552 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":"qlib/workflow/record_temp.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a06063b059a2af5fbcbf231b6e37357a85d28cd2cb0fc6ae2567dfa3aabd5a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 41 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/utils.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa6a68d58760683811549ec91449cbe386644c1d82679b614e6eaa9743b2190"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 170 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":"qlib/workflow/online/manager.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f2c6cd82e0dd4599361f6cfff3f66bd55c537a59511320472cbdb76b75a19d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 174 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":"qlib/workflow/online/manager.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e0fc5f1fef8c0cc72e4571ee426f1b89eec6aa7f2970b5d4c597e6e803968e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 211 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.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":"qlib/workflow/online/manager.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f9c857688401b0cc18fe9c0de102adb8592f1cd2fe674116b50ad8fa3dca38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 216 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":"qlib/workflow/online/manager.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee21949b0bef8537cd70f36eb4a5815088f26d6837637844be7437f0e22146b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 285 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":"qlib/workflow/online/manager.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffee16fc303eac3b62723d36a05d5c5edea650d235ca5b57892687c560a55ff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060log\u0060 at line 332 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.log(logging.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":"qlib/workflow/online/manager.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a72eca82803fb4df4c0c3abd054fc6e5303822e90b18f225cfb0fa3151147a1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 378 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.warn(\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.warn(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"qlib/workflow/online/manager.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"16046dd28d2650aa210e2387ebfa7085a74a96b65a4f2e33890cca95e8246939"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 78 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":"qlib/cli/run.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1dd0530e7b156b574fb222fc30f4cac726756239d69ca4c83d0dcab3e30a6d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 112 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":"qlib/cli/run.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"887eb6c899ccadd5076c5c09584589f454f63a3e7b806546b094ec64e28d4266"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 119 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":"qlib/cli/run.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dbbb905a0f0dd60bf62c84dccb92b2378188b2c84915095c4a264471e88cc4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 132 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":"qlib/cli/run.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15f78c95dd3e5fb5891a2bdde5b7b757903e146f8a9d868c09c9f98eeee0e95"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-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-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-1","guid":"a40d9a4c-89f5-4b5d-b2dc-32dc9cbfe814","name":"Insufficient Flow Control Mechanisms","shortDescription":{"text":"Insufficient Flow Control Mechanisms"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-01-Insufficient-Flow-Control-Mechanisms"},{"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-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"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":50,"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."]}]}