{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"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":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Text2MotionDatasetTrain.__init__ (cyclomatic 30): Text2MotionDatasetTrain.__init__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: H-GPT/hGPT/data/default/dataset_t2m_train.py holds 2 of the 4 methods over the threshold \u2014 including the worst \u2014 and 27 of the 48 points over it (56%), 2.1\u00D7 the next-largest file (H-GPT/hGPT/data/default/dataset_t2m_base.py at 13). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d202fd5e0fd7410c64d663e13e49d105d155c36a235615406dc4c1cdaa91e8c7"}},{"ruleId":"D1","level":"warning","message":{"text":"Text2MotionDatasetBase.__init__ (cyclomatic 28): Text2MotionDatasetBase.__init__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bf222162beb55850022b7f442295d84d9f3ebcd501305cc64d6332fecc7ce3"}},{"ruleId":"D1","level":"warning","message":{"text":"Text2MotionDatasetTrainDist._load_single_data (cyclomatic 27): Text2MotionDatasetTrainDist._load_single_data has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: H-GPT/hGPT/data/default/dataset_t2m_train.py holds 2 of the 4 methods over the threshold \u2014 including the worst \u2014 and 27 of the 48 points over it (56%), 2.1\u00D7 the next-largest file (H-GPT/hGPT/data/default/dataset_t2m_base.py at 13). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"779e2e33e072167cf4f83a3fec4df078aa3ddc5e09deee139ae8b8839d163147"}},{"ruleId":"D1","level":"warning","message":{"text":"HumanoidGPT.allsplit_step (cyclomatic 23): HumanoidGPT.allsplit_step has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/hgpt.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2041a6b091b2469e7391843cf23e5e5936b81099aa770746591c51da9be56fc1"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2MotionDatasetTrain.__init__ (cognitive 74): Text2MotionDatasetTrain.__init__ has cognitive complexity 74 (threshold 15). Drivers by points: if/else 20 (53 pts), loops 5 (7 pts), ternaries 3 (7 pts), error handling 2 (5 pts), boolean chains 2 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9eaa7a34b9198015a56a39a704f5a2af3663a6deb10babf2df1f4783a5af705"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2MotionDatasetBase.__init__ (cognitive 64): Text2MotionDatasetBase.__init__ has cognitive complexity 64 (threshold 15). Drivers by points: if/else 17 (37 pts), loops 5 (12 pts), ternaries 3 (7 pts), error handling 2 (5 pts), boolean chains 3 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"daed0133a128a0f8cd8a16dd8c71736d22667db0eeba819d5664682ece17126e"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2MotionDatasetTrainDist._load_single_data (cognitive 51): Text2MotionDatasetTrainDist._load_single_data has cognitive complexity 51 (threshold 15). Drivers by points: if/else 20 (40 pts), error handling 3 (4 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"274852892e3d676a4269ae6f75a036339b272d1b83cfff8be5828ba2d1485e4c"}},{"ruleId":"D2","level":"warning","message":{"text":"HumanoidGPT.allsplit_step (cognitive 48): HumanoidGPT.allsplit_step has cognitive complexity 48 (threshold 15). Drivers by points: if/else 20 (44 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/hgpt.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5908bede6588af682fa87e3a47af8ca981c04be5cf5761f346f5d484a606c1a1"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2MotionDatasetToken.__init__ (cognitive 23): Text2MotionDatasetToken.__init__ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 1 (2 pts), loops 2, boolean chains 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_token.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee6d7aae1d4b84f4caa67a101cc4dfb96bf1dbf23165de2c02026b920674086"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parse_args (cognitive 17): config.parse_args has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/config.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"db78aad7c9a5be03b71c8b92bb1858d924034ee825b05bf29f2ce157380f7403"}},{"ruleId":"D2","level":"warning","message":{"text":"demo.main (cognitive 17): demo.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 2 (5 pts), error handling 1 (4 pts) (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/scripts/demo.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"96df8ce3dbdbec38303efbe973e47420d94d2bb2dca714345558b01c23d5678c"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2MotionDatasetTrain.__getitem__ (cognitive 16): Text2MotionDatasetTrain.__getitem__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Text2MotionDatasetTrainDist.__getitem__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfa1205887c92533d53f2767bd98f2a608844d4d1fb383988441709475dd908"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2MotionDatasetTrainDist.__getitem__ (cognitive 16): Text2MotionDatasetTrainDist.__getitem__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Text2MotionDatasetTrain.__getitem__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb73ed08d7330538654884bae45de4debd5d2e812158872c633f1545c5477b5"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseModel.save_npy (cognitive 16): BaseModel.save_npy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (7 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":"H-GPT/hGPT/models/base.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2047c09c313fb6a8f945da46072c01ee07fd59be7025da5e0d9ac7ccbbae1003"}},{"ruleId":"D2","level":"warning","message":{"text":"demo.load_example_input (cognitive 16): demo.load_example_input has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/scripts/demo.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"803cbdf245d5a8b1d05653a37815e8c04c4f295027cb2f174885277618f2fc5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 111 shared lines): H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:79-244 | H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:250-392 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:109-238 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:110-239 \u2014 These 4 members are variants of one another: a block of 111 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8901c9679b11b73e172ed6d5acff9ed4711c256591555f345b3d2eeb7de6f400"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:85-103 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:86-104 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a12b36f739429c42abfe5ed4b15f5e8a1d4780cde4cde42574b00dc6beedd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): H-GPT/hGPT/metrics/m2m.py:22-40 | H-GPT/hGPT/metrics/mr.py:18-34 \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":"H-GPT/hGPT/metrics/m2m.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ce5315d6001ec6e1b2a8c9f456dc33a6dc7d70c5beb6964eec9d3d6cf27e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): H-GPT/hGPT/data/default/dataset_t2m_base.py:36-191 | H-GPT/hGPT/data/default/dataset_t2m_base.py:266-469 | H-GPT/hGPT/data/default/dataset_t2m_token.py:41-109 | H-GPT/hGPT/data/default/dataset_t2m_token.py:163-285 | H-GPT/hGPT/data/default/dataset_t2m_train.py:38-184 | H-GPT/hGPT/data/default/dataset_t2m_train.py:270-313 \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":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96d7d6b4e060101814dd3dd9024e76539599b8b03097cc5c2bbbf2eb38bf37f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): H-GPT/hGPT/utils/geometry_conver.py:23-51 | H-GPT/hGPT/utils/geometry_tools.py:464-492 | H-GPT/hGPT/utils/geometry_tools.py:496-523 | H-GPT/hGPT/utils/rotation_conversions.py:449-477 | H-GPT/hGPT/utils/rotation_conversions.py:481-508 \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":"H-GPT/hGPT/utils/geometry_conver.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68247736cf32550d4bc5837080c3735658cabc39774979a42d67dc7ab135411"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): H-GPT/hGPT/data/default/dataset_t2m_base.py:36-191 | H-GPT/hGPT/data/default/dataset_t2m_base.py:266-469 | H-GPT/hGPT/data/default/dataset_t2m_train.py:38-184 | H-GPT/hGPT/data/default/dataset_t2m_train.py:316-422 \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":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"761b807c5225ad29ea9188777da7ee0a4e63c1aaad1c0187cdf738570d070d9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): H-GPT/hGPT/data/motionx/common/quaternion.py:299-324 | H-GPT/hGPT/utils/geometry_conver.py:55-82 | H-GPT/hGPT/utils/geometry_tools.py:52-79 | H-GPT/hGPT/utils/rotation_conversions.py:37-64 \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":"H-GPT/hGPT/data/motionx/common/quaternion.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed955584ec2d43b1c2089ea37f04e94fa9e0586a51e2af259ab6c2885a1ff0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): H-GPT/hGPT/utils/geometry_tools.py:165-186 | H-GPT/hGPT/utils/geometry_tools.py:232-270 | H-GPT/hGPT/utils/rotation_conversions.py:150-171 | H-GPT/hGPT/utils/rotation_conversions.py:217-255 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34725df90aa39f25f5a3c868c8862b3f7f7429ac2d4f5050b9c8ef32d53ef7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (86 corresponding lines): H-GPT/hGPT/metrics/m2t.py:218-310 | H-GPT/hGPT/metrics/t2m.py:140-225 \u2014 These two members are one piece of code written twice and then edited apart: 86 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/m2t.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"723a63f8d2bfe1a9227755252dbdca80cc842d3e8d0fc705de10b4e737d70a42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): H-GPT/hGPT/metrics/m2t.py:28-111 | H-GPT/hGPT/metrics/t2m.py:28-89 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/m2t.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b20eb24fa5e4ce76b04dfbf0d1b51e157a0f63447153ea851de284480a45ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): H-GPT/hGPT/data/motionx/common/quaternion.py:179-229 | H-GPT/hGPT/data/motionx/common/quaternion.py:252-295 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/common/quaternion.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf9a139958d095c1b273772109c98f6fc67e44b254d3836b6c041d4f6b8e77d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): H-GPT/hGPT/data/default/dataset_t2m_base.py:197-244 | H-GPT/hGPT/data/default/dataset_t2m_base.py:475-521 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"6726d2db989b6c1d57546123413e6a0699a9cfd01355bdd447ef3887a0629506"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): H-GPT/hGPT/metrics/mm.py:39-83 | H-GPT/hGPT/metrics/t2m.py:92-136 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/mm.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca501d3d489b4e72a67fb2ba9ce033181d14eec869af233c4edc6d368735b97f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): H-GPT/hGPT/metrics/m2t.py:324-351 | H-GPT/hGPT/metrics/t2m.py:245-290 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/m2t.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdc82ef6038a000570c72ddc02781f1f16235df51e2e4af15f9c1017be10c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): H-GPT/hGPT/models/archs/utils/quantize_cnn.py:58-86 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:374-398 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/quantize_cnn.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05651d13828ef7a2d1e37ada9c9100fbc2066170060fd6113acb6ca88dac523"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 21\u002B corresponding lines): H-GPT/hGPT/data/motionx/common/skeleton.py:169-189 | H-GPT/hGPT/data/motionx/common/skeleton.py:198-222 | H-GPT/hGPT/data/motionx/common/skeleton.py:230-250 | H-GPT/hGPT/data/motionx/common/skeleton.py:258-282 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/common/skeleton.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbea2ee067a91547e0d37f64ab47eefd6c619a5f084ce87ae55b55aabec6fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): H-GPT/hGPT/models/evaluator.py:289-330 | H-GPT/hGPT/models/evaluator.py:355-378 \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":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"359e2a5f7067542bed4346dc5a547e7989ad78d907e969f3763ca503a9cb1034"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): H-GPT/hGPT/data/motionx/scripts/motion_process.py:410-439 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:58-73 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:59-74 \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":"H-GPT/hGPT/data/motionx/scripts/motion_process.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf5da7eca39a20e8594d64c2d8954065bc499407a4e5f0bbb9ce472ee04d591"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): H-GPT/hGPT/models/archs/hgpt_vq.py:133-150 | H-GPT/hGPT/models/evaluator.py:238-255 \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":"H-GPT/hGPT/models/archs/hgpt_vq.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f79f8e5b19a773bd74a47fefb0a85f091a22886af65bf4ed4844f44f570b507"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): H-GPT/hGPT/models/evaluator.py:488-510 | H-GPT/hGPT/models/evaluator.py:538-556 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"910e6faa80a15d3b63e9e44ec0b5687fb0c6386490acfee0ec5e33e208b4985c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): H-GPT/hGPT/utils/geometry_conver.py:118-136 | H-GPT/hGPT/utils/geometry_conver.py:142-158 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_conver.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2337f10293c3d8374fbe7d6c1a57c5db34a66e5e331a75cfa72c91894b969fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): H-GPT/hGPT/data/base.py:7-19 | H-GPT/hGPT/data/motionx/dataset.py:65-74 \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":"H-GPT/hGPT/data/base.py"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5c7e1b717324ec7666a259b87e0ef0fb6cc93c486e9e5a0ccec65956587f98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): H-GPT/hGPT/utils/easyconvert.py:30-47 | H-GPT/hGPT/utils/temos_utils.py:43-60 \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":"H-GPT/hGPT/utils/easyconvert.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0408423b4505fbcb9bc038cef36a2eb6fcede02ed30762b3eb20f750dd90870"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): H-GPT/hGPT/models/evaluator.py:204-215 | H-GPT/hGPT/models/evaluator.py:267-279 \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":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20e4fa8f16aaafa63f9ff4d689516148b5767f7bae9d9bec9ce26c12c87b1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): H-GPT/hGPT/models/evaluator.py:514-533 | H-GPT/hGPT/models/evaluator.py:560-577 \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":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"802590ea328d0d4abb20222648b6f6718b8547d311f4e1026405202b7942ea81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): H-GPT/hGPT/utils/easyconvert.py:51-66 | H-GPT/hGPT/utils/easyconvert.py:70-85 | H-GPT/hGPT/utils/temos_utils.py:64-79 | H-GPT/hGPT/utils/temos_utils.py:83-98 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/easyconvert.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edcca5fefafa3e43d378e8c4a4d8a360cbfc4960a98d686b86a06204d6901fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): H-GPT/hGPT/data/motionx/common/skeleton.py:79-90 | H-GPT/hGPT/data/motionx/common/skeleton.py:94-107 \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":"H-GPT/hGPT/data/motionx/common/skeleton.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"395f957e54ba25a1a85787fc71461d0c55d963843e329a231efa91db3d1c650b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): H-GPT/hGPT/metrics/utils.py:217-224 | H-GPT/hGPT/metrics/utils.py:228-237 | H-GPT/hGPT/metrics/utils.py:241-250 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/utils.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d58056bbd4e7489ba9c2fca218fb783c555e05cfedd2181ae3b76dd497e82bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): H-GPT/hGPT/utils/geometry_conver.py:546-561 | H-GPT/hGPT/utils/geometry_conver.py:565-580 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_conver.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b2281a8ee83cb8714647ff4915967a9a2c089a86b3909c6d7e21a583c0a4a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): H-GPT/hGPT/models/evaluator.py:339-350 | H-GPT/hGPT/models/evaluator.py:389-399 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a9a451177b4c9b42f57ffbf37c208c17d426ea434c22bdc453100144d048b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): H-GPT/hGPT/metrics/utils.py:27-40 | H-GPT/hGPT/metrics/utils.py:44-57 \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":"H-GPT/hGPT/metrics/utils.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f36eeabcdb58ebdea08a73c83edc0ae87bac1f29d673b058a5fd4db6436672"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): H-GPT/hGPT/models/archs/utils/quantize_cnn.py:96-103 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:283-290 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:408-415 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/quantize_cnn.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b292b35b11c00b62ebd8a149efeaca62619e4572afccd528e7b10be6360266a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:397-412 | H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:419-434 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:245-259 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:246-260 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bcfdbece801c4cc73e592d5987f7ad46598d6b4e9a028270787821adb0d9e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): H-GPT/hGPT/utils/geometry_tools.py:276-294 | H-GPT/hGPT/utils/rotation_conversions.py:261-279 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5c0f5b7211fc95e07227139bf89d6d604d989f141822d02ff0578f64a5f858"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): H-GPT/hGPT/data/default/dataset_t2m_base.py:539-553 | H-GPT/hGPT/data/default/dataset_t2m_token.py:321-336 | H-GPT/hGPT/data/default/dataset_t2m_train.py:539-554 | H-GPT/hGPT/data/default/dataset_t2m_vqvae.py:89-105 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"442d67ca0894571d8d1816d731858ec865a335b61377297aab0afd7169234290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64\u201368 lines \u00D7 4): H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:177-244 | H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:329-392 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:171-238 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:172-239 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py\u0060 and \u0060H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:327\u0060 calls \u0060add_axes\u0060 and \u0060H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:175\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cccdb1a826bf3c0539e503e23c0b26b4b17f16dfc7f0c3f8b75d892be632d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_train.py:190-248 | H-GPT/hGPT/data/default/dataset_t2m_train.py:477-535 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6154a10e81f6405a01d848aaa800eb42de8e08782035f1dbfeeebf0ca7b1675a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201348 lines \u00D7 4): H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:118-165 | H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:273-319 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:116-162 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:117-163 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py\u0060 and \u0060H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"120bf42336b707ce5318a2206e004593ff2ed2d75f5175a88b966c72344ca3c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): H-GPT/hGPT/models/archs/utils/resnet.py:18-58 | H-GPT/hGPT/models/evaluator.py:25-65 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/models/archs/utils/resnet.py\u0060 and \u0060H-GPT/hGPT/models/evaluator.py\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/resnet.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e37c12b54d08bf59c3c794ae78cb1393ec71d34a2fb6c68b1a67e38bcb9ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:232-270 | H-GPT/hGPT/utils/rotation_conversions.py:217-255 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"674752d559a0b34f39e5e18d7756115d117caf4561430a1cd09dccf1e59c2acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): H-GPT/hGPT/metrics/mm.py:39-71 | H-GPT/hGPT/metrics/t2m.py:92-124 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/mm.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"84358f92ddbf758b4017f9a548dcc81da3952ed7dc8a7cde0e797fa7c77abd6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201330 lines \u00D7 3): H-GPT/hGPT/data/default/dataset_t2m_base.py:213-236 | H-GPT/hGPT/data/default/dataset_t2m_base.py:491-513 | H-GPT/hGPT/data/default/dataset_t2m_eval.py:131-160 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py:213\u0060 it does not close everything it opens, so those exact lines 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":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ac97e4bc2dcdf57ec45f22128391a130149d9ad4767a22fdc7a8020c982813"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 3): H-GPT/hGPT/models/archs/utils/quantize_cnn.py:110-138 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:297-321 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:422-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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/quantize_cnn.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2465ee18cb5a85e270c1a8ee39d391b679a202edf268bb4fc6d06d02b136692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): H-GPT/hGPT/utils/geometry_conver.py:23-51 | H-GPT/hGPT/utils/geometry_tools.py:464-492 | H-GPT/hGPT/utils/rotation_conversions.py:449-477 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_conver.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14bac5051f976ccc6f488dfc044856309c5493883d8a3b8efdf544e9a75a105"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:496-523 | H-GPT/hGPT/utils/rotation_conversions.py:481-508 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13074409b632ef6d46836ed8b312937cbac58edd381fafe7db04552bd482a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_base.py:72-98 | H-GPT/hGPT/data/default/dataset_t2m_token.py:76-101 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_token.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call 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":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00c05857bd2f7cd1f2f1fec1711ccfc078e4d7b2dc44eba7b2cc40d40acfea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_token.py:115-141 | H-GPT/hGPT/data/default/dataset_t2m_token.py:291-317 \u2014 both copies are in the same file, so extract the block 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 \u0060H-GPT/hGPT/data/default/dataset_t2m_token.py:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_token.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0b7bda9a01fc9f1ebc23e2191ee19636550b2e03802118d319fd6f926e2002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:192-219 | H-GPT/hGPT/utils/rotation_conversions.py:177-204 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10ccd65be69c712659ecdbce28d1bce526bd94e68968c7bb1a9099e0c0642e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): H-GPT/hGPT/metrics/m2t.py:47-69 | H-GPT/hGPT/metrics/t2m.py:48-71 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/metrics/m2t.py\u0060 and \u0060H-GPT/hGPT/metrics/t2m.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/m2t.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dc21d37ecf23529b934158feb5a33092f38285e64676acf133aefd9db22dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:137-161 | H-GPT/hGPT/utils/rotation_conversions.py:122-146 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dcc84b3b52352f53ba84a13a9892fc0c5e21765a982f2ca1f9c74232b81246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:165-186 | H-GPT/hGPT/utils/rotation_conversions.py:150-171 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba610befd2bc4d3a26d62d9f4dd857e63d719d651e3c19379a00ca4cdbc11fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): H-GPT/hGPT/metrics/m2t.py:131-150 | H-GPT/hGPT/metrics/mm.py:63-83 | H-GPT/hGPT/metrics/t2m.py:116-136 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/metrics/m2t.py\u0060 and \u0060H-GPT/hGPT/metrics/t2m.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 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, \u0060H-GPT/hGPT/metrics/t2m.py:138\u0060 calls \u0060no_grad\u0060 and \u0060H-GPT/hGPT/metrics/mm.py:85\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/m2t.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e6854bd6eb5321221a8e1891ecd0ad844b5119379b9f276ce708677fa37cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201321 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_base.py:308-328 | H-GPT/hGPT/data/default/dataset_t2m_token.py:208-223 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_token.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py:308\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2ead2b86224d30c850deabab70c7698dc9185e8eb9e4c84671b4d25bd720d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): H-GPT/hGPT/models/archs/utils/resnet.py:61-80 | H-GPT/hGPT/models/evaluator.py:68-87 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/models/archs/utils/resnet.py\u0060 and \u0060H-GPT/hGPT/models/evaluator.py\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/resnet.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5772f24ca0bcf2a384f90ad41a5e8fac507ac06937c9b3325ea16489fde242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:409-428 | H-GPT/hGPT/utils/rotation_conversions.py:394-413 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"10577d925b586227ab7518029f8d5cfe19d5ed03f0eef45c71c835e5c5e989c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 4): H-GPT/hGPT/data/motionx/common/quaternion.py:299-324 | H-GPT/hGPT/utils/geometry_conver.py:55-82 | H-GPT/hGPT/utils/geometry_tools.py:52-79 | H-GPT/hGPT/utils/rotation_conversions.py:37-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/common/quaternion.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"59602a01c728c8392033f76b4941bbaea040f8f0e3d44bf0dbf81383ae947cf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): H-GPT/hGPT/data/default/dataset_t2m_base.py:47-65 | H-GPT/hGPT/data/default/dataset_t2m_token.py:52-70 | H-GPT/hGPT/data/default/dataset_t2m_train.py:47-65 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_token.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"af863bf4ff4f1c4105c4733baad7aa72c8cefbf5835a867408d8dfb65544cc7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201319 lines \u00D7 3): H-GPT/hGPT/data/default/dataset_t2m_base.py:197-210 | H-GPT/hGPT/data/default/dataset_t2m_base.py:475-488 | H-GPT/hGPT/data/default/dataset_t2m_eval.py:71-89 \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":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecb2c60e7852362360423fd47852d7fa2e5cfb3753916564fcab34223d13c63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:527-547 | H-GPT/hGPT/utils/rotation_conversions.py:512-532 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"483a415c33ee407975472204280218d9c46ee2f9eeeb7b8ee464e19870f94675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_eval.py:98-114 | H-GPT/hGPT/metrics/m2t.py:178-190 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_eval.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"989bf32ca382009fde9815f730358122f2bb446441ead54a6a6f0218170e85b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_eval.py:466-482 | H-GPT/hGPT/data/default/dataset_t2m_eval.py:486-502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/data/default/dataset_t2m_eval.py:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_eval.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"864efda605b1c6bc72ae343c0d5d8ccd69c5a06f27b1369830e5aebc4078b3da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): H-GPT/hGPT/models/evaluator.py:518-533 | H-GPT/hGPT/models/evaluator.py:561-577 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a0de164b8d5ed684aee870036be11319178b213523dc272b0ac878d2b10fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:276-292 | H-GPT/hGPT/utils/rotation_conversions.py:261-277 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c2e9f85007045aaaa891da665e190517bded7a6aa488fb9cba229779131947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): H-GPT/hGPT/data/motionx/scripts/motion_process.py:424-439 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:60-73 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:61-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/scripts/motion_process.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"76769c63a6cebc0eee7425872c556a0a73cf4f4c749834597c77c852167f8fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_train.py:130-145 | H-GPT/hGPT/data/default/dataset_t2m_train.py:377-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/data/default/dataset_t2m_train.py:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7faad11ba3b3cdb5ea27672b7ab988e90b927a1ee4d72bb19cf92da3d10e794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): H-GPT/hGPT/models/archs/utils/resnet.py:93-108 | H-GPT/hGPT/models/evaluator.py:100-115 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/models/archs/utils/resnet.py\u0060 and \u0060H-GPT/hGPT/models/evaluator.py\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/resnet.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f2e7dee2ec7c41b3769cb2c492e99a969fdea6687ce8550fc24dd5fea70100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:112-133 | H-GPT/hGPT/utils/rotation_conversions.py:97-118 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e967307510a67d18a507759be7e11f6c739624a2fddbca286e28b12c727f27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): H-GPT/hGPT/data/default/dataset_t2m_base.py:36-50 | H-GPT/hGPT/data/default/dataset_t2m_base.py:266-280 | H-GPT/hGPT/data/default/dataset_t2m_token.py:41-55 | H-GPT/hGPT/data/default/dataset_t2m_token.py:163-177 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_token.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 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, \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py:54\u0060 calls \u0060enumerate\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py:284\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"069114ef35e5116be581d469a6ecf956f8020d7268f52c33922fd5e64e78f457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): H-GPT/hGPT/models/archs/hgpt_vq.py:136-150 | H-GPT/hGPT/models/evaluator.py:241-255 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/hgpt_vq.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3b92c74f989b50aaa766887ebdc0dae322bef566561a5234d90489099dd22c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_base.py:142-155 | H-GPT/hGPT/data/default/dataset_t2m_base.py:375-388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py:142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cde8479630eef086395a146206d1319e2774cd7f2480172e76c789cde9ceacf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:355-372 | H-GPT/hGPT/utils/rotation_conversions.py:340-357 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d45a976af8f4e35fa3a406cd77e0d29b8a9b9f550a40dba7c5d862afd261a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:419-431 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:245-257 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:246-258 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py\u0060 and \u0060H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"c444c1e73fa4e29b616f63652402531675959934b9c1597ea44f7e6d1fe84523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): H-GPT/hGPT/metrics/m2t.py:243-255 | H-GPT/hGPT/metrics/t2m.py:165-177 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/metrics/m2t.py\u0060 and \u0060H-GPT/hGPT/metrics/t2m.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/m2t.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ca22eca49bf8ef73126ab7d525175a2fb8f03de7324283ffc7d1ee9e763642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): H-GPT/hGPT/metrics/m2t.py:265-278 | H-GPT/hGPT/metrics/t2m.py:187-200 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/metrics/m2t.py\u0060 and \u0060H-GPT/hGPT/metrics/t2m.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/m2t.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"843295257fb50284ad59319d1c0b79c02c966cea1d69541fbd38f23d732c13ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): H-GPT/hGPT/utils/geometry_conver.py:36-47 | H-GPT/hGPT/utils/geometry_tools.py:477-488 | H-GPT/hGPT/utils/geometry_tools.py:511-522 | H-GPT/hGPT/utils/rotation_conversions.py:462-473 | H-GPT/hGPT/utils/rotation_conversions.py:496-507 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_conver.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecec22c80645204f507da2aa914bc623d065c10575b14755fadfa8a8c006b489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): H-GPT/hGPT/data/default/dataset_t2m_train.py:203-214 | H-GPT/hGPT/data/default/dataset_t2m_train.py:490-501 | H-GPT/hGPT/metrics/m2t.py:154-165 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"35cb8ed490bc3e842ce08919568002d7167fa835a21348a3316f5ddd5618d897"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): H-GPT/hGPT/models/evaluator.py:491-502 | H-GPT/hGPT/models/evaluator.py:540-551 \u2014 both copies are in the same file, so extract the block 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, \u0060H-GPT/hGPT/models/evaluator.py:504\u0060 calls \u0060apply\u0060 and \u0060H-GPT/hGPT/models/evaluator.py:553\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b1adde85180d218fe9fba672e34f3838f26901a3b8a5457999e04560f61e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): H-GPT/hGPT/utils/geometry_conver.py:118-129 | H-GPT/hGPT/utils/geometry_conver.py:142-153 \u2014 both copies are in the same file, so extract the block 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 \u0060H-GPT/hGPT/utils/geometry_conver.py:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_conver.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a47442688881d28fdd4270adaf3c3379775783113989eea2b0f01237dc464c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): H-GPT/hGPT/data/default/dataset_t2m_base.py:43-53 | H-GPT/hGPT/data/default/dataset_t2m_base.py:273-283 | H-GPT/hGPT/data/default/dataset_t2m_token.py:48-58 | H-GPT/hGPT/data/default/dataset_t2m_token.py:170-180 | H-GPT/hGPT/data/default/dataset_t2m_train.py:43-53 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_token.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 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, \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py:54\u0060 calls \u0060enumerate\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py:284\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cad78bf9ec82b0bb22c4af1136e8eee872a32485bf4f653b8a2e03771177c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_train.py:176-183 | H-GPT/hGPT/data/default/dataset_t2m_train.py:302-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/data/default/dataset_t2m_train.py:302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"836fb6574989f2394631997dc97d806d20bd75ad96bf8c25468a56039a7c61fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): H-GPT/hGPT/data/motionx/common/skeleton.py:204-214 | H-GPT/hGPT/data/motionx/common/skeleton.py:230-239 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/common/skeleton.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"432a15709cfe0789f3fab044105f2b0f13462c43ad9b82dedd994e9e331232c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): H-GPT/hGPT/models/evaluator.py:461-471 | H-GPT/hGPT/models/evaluator.py:618-628 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f28948222defb156aed4b735ecdb0997f525916af953e7f2be9ab0503786b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): H-GPT/hGPT/metrics/m2t.py:241-249 | H-GPT/hGPT/metrics/m2t.py:263-271 | H-GPT/hGPT/metrics/t2m.py:163-172 | H-GPT/hGPT/metrics/t2m.py:185-193 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/metrics/m2t.py\u0060 and \u0060H-GPT/hGPT/metrics/t2m.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/metrics/m2t.py:241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/m2t.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46d741904c6ff6b592424f4ff4a265d2fd53fc5ba482fe6757741e0d55047bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): H-GPT/hGPT/data/default/dataset_t2m_base.py:346-355 | H-GPT/hGPT/data/default/dataset_t2m_train.py:106-115 | H-GPT/hGPT/data/default/dataset_t2m_train.py:355-364 \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":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad864b94f21597b2c093400bfa8dd6378b492975275778de2a5766a724a271e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): H-GPT/hGPT/models/archs/hgpt_vq.py:133-142 | H-GPT/hGPT/models/archs/hgpt_vq.py:170-178 | H-GPT/hGPT/models/evaluator.py:238-247 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/models/archs/hgpt_vq.py:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/hgpt_vq.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e931073d4dd3e1b251f21dddfe4303744e529fe917779ad35d5c06401e4f3ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): H-GPT/hGPT/data/motionx/scripts/motion_process.py:245-254 | H-GPT/hGPT/data/motionx/scripts/motion_process.py:280-289 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/scripts/motion_process.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ae3cce92fe93cf46785bc6358922a1483f504b06c87476fc50495263ae4e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): H-GPT/hGPT/models/archs/utils/quantize_cnn.py:25-33 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:224-232 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:341-349 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/quantize_cnn.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e24504975095c58fd04fc428f69278ec12c03306dcfb89e4a7cb682d301aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): H-GPT/hGPT/data/base.py:96-104 | H-GPT/hGPT/data/base.py:107-115 \u2014 both copies are in the same file, so extract the block 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":"H-GPT/hGPT/data/base.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24e0101fa1c1ab2a19992c2027cf192a98e951aae3e0eb68189ba783bd00815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): H-GPT/hGPT/data/default/dataset_t2m_base.py:277-285 | H-GPT/hGPT/data/default/dataset_t2m_train.py:280-288 \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":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d452097292593f46240f7bac73e055e74d4aa6f2f2b0534363c79969858663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:659-667 | H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:682-690 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:659\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"d984a6fc85ab2b0608ec88fd1c8fa54c3ff7e67b67ae50bdb8ab9285fecac71c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): H-GPT/hGPT/models/evaluator.py:290-298 | H-GPT/hGPT/models/evaluator.py:356-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060H-GPT/hGPT/models/evaluator.py:300\u0060 calls \u0060Linear\u0060 and \u0060H-GPT/hGPT/models/evaluator.py:366\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13b6fa12a17c6f1d015306218debd7a2db56abbb2811b34c5b2a8496be324cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): H-GPT/hGPT/data/default/dataset_t2m_base.py:119-126 | H-GPT/hGPT/data/default/dataset_t2m_base.py:350-357 | H-GPT/hGPT/data/default/dataset_t2m_train.py:110-117 | H-GPT/hGPT/data/default/dataset_t2m_train.py:359-366 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f929eb261c5a47b347730844fa376a8ea5c401c21cfb0f4045d3c87ca2084c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): H-GPT/hGPT/data/base.py:10-19 | H-GPT/hGPT/data/motionx/dataset.py:65-74 | H-GPT/hGPT/utils/tensors.py:13-22 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/base.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58bd67a1cdc072ad13e55b8c03d40271e31700cea4cd9a824f6bad20835c211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): H-GPT/hGPT/data/default/dataset_t2m_base.py:277-284 | H-GPT/hGPT/data/default/dataset_t2m_token.py:174-181 | H-GPT/hGPT/data/default/dataset_t2m_train.py:280-287 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_token.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"264a0b41b56409d159487eaf6edb87f4573f3f827903300d1a76cec233709b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): H-GPT/hGPT/models/evaluator.py:459-466 | H-GPT/hGPT/models/evaluator.py:514-524 | H-GPT/hGPT/models/evaluator.py:616-623 \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 \u0060H-GPT/hGPT/models/evaluator.py:514\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2edd36b747a19632fbefd285e067ea153accfe8ebd6dd37fb35cadb1ae8bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20138 lines \u00D7 3): H-GPT/hGPT/data/motionx/scripts/motion_process.py:364-364 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:96-103 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:97-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/scripts/motion_process.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a17b270bbaab844b1e884ee7587819a4de61308b3eb197d47089f943f7e0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): H-GPT/hGPT/metrics/m2t.py:324-331 | H-GPT/hGPT/metrics/t2m.py:245-252 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/metrics/m2t.py\u0060 and \u0060H-GPT/hGPT/metrics/t2m.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/metrics/m2t.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a392f287e7260648fcc66cbfead24961a5a73b62aa9322cfeeb450bc806016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): H-GPT/hGPT/data/default/dataset_t2m_base.py:47-53 | H-GPT/hGPT/data/default/dataset_t2m_base.py:277-283 | H-GPT/hGPT/data/default/dataset_t2m_token.py:52-58 | H-GPT/hGPT/data/default/dataset_t2m_token.py:174-180 | H-GPT/hGPT/data/default/dataset_t2m_train.py:47-53 | H-GPT/hGPT/data/default/dataset_t2m_train.py:280-286 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_token.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 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, \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py:54\u0060 calls \u0060enumerate\u0060 and \u0060H-GPT/hGPT/data/default/dataset_t2m_base.py:284\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb1360542039876237d27a0a77f52ba73d839e17a47521c0a6257097bb27216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): H-GPT/hGPT/utils/geometry_tools.py:178-184 | H-GPT/hGPT/utils/geometry_tools.py:242-248 | H-GPT/hGPT/utils/rotation_conversions.py:163-169 | H-GPT/hGPT/utils/rotation_conversions.py:227-233 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a169e00a6f20567afb6716e4f1c1792362084b5322a192e1f062b9755ce08ed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): H-GPT/hGPT/data/motionx/scripts/motion_process.py:354-360 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body.py:85-91 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:86-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/scripts/motion_process.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abda01246fae8a1a72628951ac7b9b8ef9c45ea1930958f6b0af61d423f77da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): H-GPT/hGPT/models/archs/utils/quantize_cnn.py:45-53 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:243-251 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:361-369 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060H-GPT/hGPT/models/archs/utils/quantize_cnn.py:55\u0060 calls \u0060no_grad\u0060 and \u0060H-GPT/hGPT/models/archs/utils/quantize_cnn.py:253\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/quantize_cnn.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e203785bb5e6797b2b24fcb600fe8e800d9276ed32e4c6d53c68bd69fbfd12a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): H-GPT/hGPT/models/archs/utils/quantize_cnn.py:97-103 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:284-290 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:409-415 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/quantize_cnn.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"662381ff536fc4fbffb5cafa658b62409b1fbae718a2a66c8d0c674ebc1029ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:506-511 | H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:519-525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:506\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd16a98549c80ccb4608f9966fc565c6994f692b3249c67dfea98d89a080a02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): H-GPT/hGPT/metrics/m2m.py:28-40 | H-GPT/hGPT/metrics/mr.py:22-34 \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":"H-GPT/hGPT/metrics/m2m.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee601f25565d17e45cbb5eeba1493ead456f01ce8178db186642979a740bd0d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): H-GPT/hGPT/models/archs/utils/quantize_cnn.py:160-166 | H-GPT/hGPT/models/archs/utils/quantize_cnn.py:188-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/quantize_cnn.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6eb0ad6a0ce7cb84be32dc0405422f536cd36a052e1ce9fc1432475d88af639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): H-GPT/hGPT/metrics/utils.py:217-222 | H-GPT/hGPT/metrics/utils.py:228-233 | H-GPT/hGPT/metrics/utils.py:241-246 \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":"H-GPT/hGPT/metrics/utils.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a460371bbff08b0d9283cf517115fd3fc0776a755eda883043c4b541c9e9a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:514-519 | H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:528-533 \u2014 both copies are in the same file, so extract the block 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 \u0060H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py:514\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/smplx2smpl/smplx2joints.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"db11413ac6905e96deabd1b920b66e4c8f194f6e334bf7de3845ceae486c62e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): H-GPT/hGPT/models/base.py:189-196 | H-GPT/hGPT/models/base.py:205-212 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/base.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a2f214913e23343c216e7a9a59965c1e583db44fa06d772def4a0268af71ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): H-GPT/hGPT/models/base.py:200-205 | H-GPT/hGPT/models/base.py:207-212 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/base.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"641572fefe6a1de770b1a81773122ed88836323259d4c3cf43a59db5d96fbafa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): H-GPT/hGPT/models/evaluator.py:340-345 | H-GPT/hGPT/models/evaluator.py:390-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a62f57b703876b5d4e6f039c11638a72dc11c5f8cc29dd656633564f5656bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): H-GPT/hGPT/utils/geometry_conver.py:102-112 | H-GPT/hGPT/utils/geometry_tools.py:38-48 \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":"H-GPT/hGPT/utils/geometry_conver.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"066c81990bd9007614d45e731c50021d4ed740c0f861c1b6672559273b4bf1a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): H-GPT/hGPT/data/motionx/dataset.py:46-60 | H-GPT/hGPT/data/motionx/scripts/cal_mean_variance.py:9-23 | H-GPT/hGPT/data/motionx/scripts/motion_process.py:60-74 | H-GPT/hGPT/data/motionx/scripts/raw_pose_processing.py:62-76 | H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py:59-73 | H-GPT/hGPT/data/motionx/visualization/plot_feature_body_hands.py:264-278 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/dataset.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b6073b8a0889216fdfa0ab83f3f9cc7423bdf5f02af132224fc23dd4a25d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): H-GPT/hGPT/data/motionx/smplx2smpl/add_face_vectors.py:42-47 | H-GPT/hGPT/data/motionx/smplx2smpl/transfer_to_body_only_joints.py:36-41 | H-GPT/hGPT/data/motionx/smplx2smpl/transfer_to_body_only_vectors.py:36-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/smplx2smpl/add_face_vectors.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ff135d6b2ca1cc3dbc1b8f086c8fb015598c02a433e76ff292c8b971420413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): H-GPT/hGPT/utils/easyconvert.py:17-26 | H-GPT/hGPT/utils/temos_utils.py:30-39 \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":"H-GPT/hGPT/utils/easyconvert.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7c076701f66262d20cf0727d4adbe664506905a30fdafe93e0ee83816dcc3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:101-108 | H-GPT/hGPT/utils/rotation_conversions.py:86-93 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02cdb5f3bcda46c1c349b67e113f3fafa85ac75a48c85482162f5c9aab3bd49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): H-GPT/hGPT/utils/geometry_tools.py:551-565 | H-GPT/hGPT/utils/rotation_conversions.py:536-550 \u2014 before extracting anything, compare \u0060H-GPT/hGPT/utils/geometry_tools.py\u0060 and \u0060H-GPT/hGPT/utils/rotation_conversions.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"424690156cb89adb357c12b582fdce4793a6630c41558319ad7ce6b69bb7a568"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MotionXDataModule (LCOM4 4): MotionXDataModule\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":"H-GPT/hGPT/data/MotionX.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91e1372ccaee99a431225718b0b856594551bff79e5e321a3f732f7962bc6de"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (pytest or unittest), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D13","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":"a860e1af66f8e7c1410713eb6399ca23084bcc72721897f4a81a4d5b84fa2393"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"e85cfa9bf712453ca208563d41612388dee21b66efa4a188dbf85cf7f2f36173"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"be450e99cc07a41d067c602a24cb520a2ed4944af4e0b9667d38681ed315c8a8"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"0db0179af2900e6f7ae531f52a96d03a83ac1c51c9d9dbc03477049fb0f2ba6a"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"9698b428ef9b5ea9620891d537db3c4f2a9c5afacbd53e4be56132d4eed69739"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"2f0dd7c3ecdcf244ee859dc25cda454cc69641b4378e2ea59f9989114f87db77"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"71d5b02a5ef9473ef75c9a50d30a010c672047029673a8a68bfcf593e22cb560"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"340b3823857f98d2f338557b085d935af8d512f80a67e446a4bb02bafd8bf878"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"fe3f7975aa61e7fc1118443665c2696e45532948e14c9c4463e338120d872187"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"2c27fe6e283317e9ea342b77fbe46191ddac179f0088eda8e9b0e013a0d90cd6"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"1faf7bc8b6ab998178458311f136f4efa84abbf85dfd7243b7c5efb889bc35ab"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"829a41890ba276b586ba731945f4c17640fab69a2abe3d82bdfd320521c06096"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"acd46fd786ff38e4ea3e34ff684cb84c31178839b66a153b49d83cd08f485885"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"a60055d25e9e1019709b4f5152e56cdbd64c82255a929c54b3b5132e243de33c"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"b41492c57d66ee8b50e4cd936ea41bef3c8dad49ab732e90038b3c4c4a1f54d3"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"29087df8bac5f3bce520ee41a258f4484e03b9e500273489519ed1969f17dcf0"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"18a786d4a48f4496f49c27db5d823f59dfea4e877aa0e64f83dcd1bf68ebe7ca"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"c6b5a5e146a5cc05e1a4057e08c3d00c04f9b8cafa142d3f7c2f3064389412b2"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"9c6eb008cefec9fc3ab502d4d3e266b4c2d4d2857e33766a2e7d0dd5878f148e"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"4812cde3343eaa8935996c3de468a53c4830b04baaa32dcc9646393aa77ebbe0"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"966f9635b99a526d933224e3daeb3f1e761280c66f2bfc11c34512289f3237bd"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"7317446795e6869e5304d529ce47b12c2727542831a3b9e6b1cc76203f229045"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"db162cb260c1e627dd12bf4acc31f62a4d20cd5cff0e1dfbceda0eeebf85fd50"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"424c6251df43f38b97595b9d05bf073d46861601a2603b34a0d91943bed23c83"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"a5eafdfa7dd99139cf94d4eb99a94965f17e247b2dcab578e4f75f076f512511"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D14","level":"error","message":{"text":"Banned license: easydict: \u0060easydict\u0060 1.14 is published on PyPI under \u0060LGPL-3.0-only\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5156934c0ffa617561aac5e63397b70064f5a29cd1cee927b5c7ad49900c78e9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use a real subsampler.. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/temos_utils.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f05400c1f31f0c6b5bceef8a8f780a06e501ac0d96f07ac467fbc49880eaac9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use a real upsampler.. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/temos_utils.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e202639f7f525fbc9093110a1dc2d469a679f371b287b1aeb425ed613170775"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (pli): check this type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"161ab23ecb6421c866834cf330b2a6a6986b14535417a9dcd1e77a05eeed544a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (pli): check the permute \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/evaluator.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f397e1a9b22d5a3e1691e8751b41b75242911d400671acb808ca4b7040538e72"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: only tune motion tokens. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/hgpt_lm.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4263cc685d5c68cc4480b85ae86b343ef5f72ab97ede01e8cad0dbe1df495aa0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: save only lora \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/hgpt_lm.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ececc0dd29d7741f772a6941f9ee993ecef24c42811edb8542f89091d5ecd6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check here, do sample = False \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/hgpt_lm.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"c669ad3ea22f32429ad937245acbf17aae7c667bca88c3cee08f471121ce6f92"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check this dtype \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/utils/quantize_cnn.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2d06482e71f6aae3bdefd293652435ebec1090f3fcb3c913e5601b126455be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check this dtype \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/scripts/motion_process.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0402e881e154569d03073a3429b903a45cc54544704ada769a165f4564d88c5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check this dtype \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/scripts/motion_process.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffca265bd073fef5da120ad59f129dc3bb0fc484a0bc450e13898d0f09731f4d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO\uFF1A AttributeError: \u0027Axes3D\u0027 object has no property \u0027auto_add_to_figure\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":"H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2703cb0697a4dd15f7fee254a4fbe34d381f70e50d0042bd1d35ef66ff28dd9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix 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":"H-GPT/hGPT/data/motionx/visualization/plot_smplx.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"26671705c68e382d30b32eada126a72fb00d2b420c656f57d0a9a98c25862e77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add face \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/scripts/cal_mean_variance.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3626dc62456e49b700451cd9f003604b1daecf718f5c7adac2ed05192eacbb71"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check this tgt offsets \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/scripts/motion_process.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef511edfd50d4a7125e63b968b924c38b439b4755c749751f84a4d2d038a25d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: parallel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/motionx/scripts/raw_pose_processing.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"350df0365720318eef9cc68da30d4011b5722ae7e47a7c2273d71a083a8a895f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix len(cot_list) != len(lines) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"57de7f0039d77e7e48f364dbe5efa80bf9fec4886c900c65d528fc93d9e34bf8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix len(cot_list) != len(lines) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a671f12bac182ea9ab1d18969ada3885883cbd9b7a30179290048d2afe7542a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix len(cot_list) != len(lines) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17fdc7f29a6f51234ce5e3f60fcf05a8f3f986008393d4fde20d7415e6c7326"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix len(cot_list) != len(lines) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3039e91ecac0dc15d59e04509d78a106c098ce9b8f5949de50dc0623bc21f3"}},{"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":"4e8880511b6271c3150b896093a8cc65934c02c64ce41e0e15b81abd43d81e8b"},"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":"59a2a13e4f030f11e85601a427b92326a41f5776f426e0ade9e59d596ac5c819"},"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":"e462339e36a2ff04a62327d8dc639d1d347e9b3ccd79c49cdaeeb8ce78f4878e"},"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":"39d4b4b092197b557aa1cf7e2c18c9288f6cc50d196fa74c71d7d6fab052f3cf"},"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":"82703c2c7c5fb19d881cef40a6ad203b6167c0231e8a60cfb7056baf30ab4c5a"},"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":"4ec52500a582aca3a3366e831a4951e5b3ff49c30e6728bc13df3cb7ffbf7407"},"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":"096f6cf0896b6cb93a274bec9963a97d0ec159263a58245af8555649a52ef201"},"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":"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":"60d31a051760159631eaa9ba0e90c965120cf2c230f2b5ca78fdc144cd48fdda"},"properties":{"dependency":{"package":"transformers","version":"4.45.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-227","PYSEC-2024-228","PYSEC-2024-229","PYSEC-2025-211","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2025-40","PYSEC-2026-1977","PYSEC-2026-1980","PYSEC-2026-1981","PYSEC-2026-1982","PYSEC-2026-1983","PYSEC-2026-1984","PYSEC-2026-1985","PYSEC-2026-1986","PYSEC-2026-1987","PYSEC-2026-1988","PYSEC-2026-2288","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929"],"reachability":{"kind":"production","file":"H-GPT/hGPT/models/archs/hgpt_lm.py","line":18}}}},{"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":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"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 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060requirements.txt\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"requirements.txt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea225f8356846d84bbfadf416ac2ef55b5c7044e420f90a9d544ca3d435c540"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(len(motion)) \u003C self.min_motion_length or ( len(motion) \u003E= self.max_motion_length )\u0060 appears character-identically in 2 files \u2014 H-GPT/hGPT/data/default/dataset_t2m_base.py, H-GPT/hGPT/data/default/dataset_t2m_token.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_base.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf74f62ca96d44c2ba3c9d24ce0eb996c0f6120ccd2ee7f213d8ad26a77c249"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060euler_angles.dim() == 0 or euler_angles.shape[-1] != 3\u0060 appears character-identically in 2 files \u2014 H-GPT/hGPT/utils/geometry_tools.py, H-GPT/hGPT/utils/rotation_conversions.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1a549dae147c734cc3ebc17cf1513f78873c2dfd6a41edae209bc5a7d04f96"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matrix.size(-1) != 3 or matrix.size(-2) != 3\u0060 appears character-identically in 2 files \u2014 H-GPT/hGPT/utils/geometry_tools.py, H-GPT/hGPT/utils/rotation_conversions.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/utils/geometry_tools.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"903810c9b789e73ac70985eead702b63f9e82cf8da2b6e0b739819ed6f25f61c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token.pos_ == \u0022NOUN\u0022 or token.pos_ == \u0022VERB\u0022\u0060 appears character-identically in 2 files \u2014 H-GPT/hGPT/data/default/dataset_t2m_train.py, H-GPT/hGPT/metrics/m2t.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/dataset_t2m_train.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"386dc8fc0d4bdb64202f4daa1917a58bdfaffc5dbe56a192ebcdd18e5815e762"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/models/archs/hgpt_lm.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38c6282965a1c3027ea80a25d191cbe89e83424f98aeec10fd6aa07cca391bd"}},{"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":"H-GPT/hGPT/data/motionx/visualization/plot_3d_global.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e06d240a8df55741819136d468911be268140629e74df2ea01273f5be4769cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"H-GPT/hGPT/data/default/word_vectorizer.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a677efc55cbd2de054cee9166c34daaf46c644127d77d0bee2477499c133b3"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-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-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"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/"}]}],"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":33,"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."]}]}