{"$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":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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":"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":"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":"HiVit.HiViT_base (cyclomatic 23): HiVit.HiViT_base 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":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58b9cb5b58c819e054947d8500d4ef6129444644c8aee20c5dc392d564af6d2"}},{"ruleId":"D1","level":"warning","message":{"text":"HiVit.HiViT_base (cyclomatic 23): HiVit.HiViT_base 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":"ATRBench/Classification/SARatrX/model/HiVit.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b5b45947dec35f9ad71417edfa5900eb22651a44dce4ff99215e7150dbc5bd"}},{"ruleId":"D2","level":"warning","message":{"text":"HiVit.HiViT_base (cognitive 39): HiVit.HiViT_base has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 4, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1558fc1d7a0955f53facdae6b3881d71e395188c3230222b09150dd8689c71"}},{"ruleId":"D2","level":"warning","message":{"text":"HiVit.HiViT_base (cognitive 39): HiVit.HiViT_base has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 4, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/SARatrX/model/HiVit.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"b740e45f30c3238403d5ae55763b90f7ab562694150bd172cec7843c152404a0"}},{"ruleId":"D2","level":"warning","message":{"text":"HiViT.__init__ (cognitive 20): HiViT.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 5 (8 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a117a3122597eca96d5df9aa057433948c528c69fa054e4f217f1b9aec1c2ec1"}},{"ruleId":"D2","level":"warning","message":{"text":"HiViT.__init__ (cognitive 20): HiViT.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 5 (8 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/SARatrX/model/HiVit.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa28fe10165b50c0743742a31deb3728ec572bb5edc5f97399a416b68eebf70"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (69 members, 15 shared lines): ATRBench/Classification/ConvNeXt/EOC_A.py:19-37 | ATRBench/Classification/ConvNeXt/EOC_B.py:19-37 | ATRBench/Classification/ConvNeXt/EOC_D.py:19-37 | ATRBench/Classification/ConvNeXt/EOC_P.py:19-37 | ATRBench/Classification/ConvNeXt/EOC_S.py:20-50 | ATRBench/Classification/ConvNeXt/SOC_40.py:19-37 | ATRBench/Classification/ConvNeXt/SOC_50.py:19-37 | ATRBench/Classification/ConvNeXt/SOC_50_05.py:19-37 | ATRBench/Classification/ConvNeXt/SOC_50_1.py:19-37 | ATRBench/Classification/ConvNeXt/SOC_50_2.py:19-37 | ATRBench/Classification/ConvNeXt/SOC_50_4.py:19-37 | ATRBench/Classification/ConvNeXt/SOC_50_6.py:19-37 | ATRBench/Classification/ConvNeXt/SOC_50_8.py:19-37 | ATRBench/Classification/HDANet/Main_EOC_A.py:15-33 | ATRBench/Classification/HDANet/Main_EOC_B.py:15-33 | ATRBench/Classification/HDANet/Main_EOC_D.py:15-33 | ATRBench/Classification/HDANet/Main_EOC_P.py:15-33 | ATRBench/Classification/HDANet/Main_EOC_S.py:15-33 | ATRBench/Classification/HDANet/Main_SOC_40.py:15-33 | ATRBench/Classification/HDANet/Main_SOC_50.py:15-33 | ATRBench/Classification/HDANet/Model/VGG16.py:177-193 | ATRBench/Classification/HiViT/EOC_A.py:19-37 | ATRBench/Classification/HiViT/EOC_B.py:19-37 | ATRBench/Classification/HiViT/EOC_D.py:19-37 | ATRBench/Classification/HiViT/EOC_P.py:19-37 | ATRBench/Classification/HiViT/EOC_S.py:20-50 | ATRBench/Classification/HiViT/SOC_40.py:19-37 | ATRBench/Classification/HiViT/SOC_50.py:19-37 | ATRBench/Classification/ResNet18/EOC_A.py:19-37 | ATRBench/Classification/ResNet18/EOC_B.py:19-37 | ATRBench/Classification/ResNet18/EOC_D.py:19-37 | ATRBench/Classification/ResNet18/EOC_P.py:19-37 | ATRBench/Classification/ResNet18/EOC_S.py:20-50 | ATRBench/Classification/ResNet18/SOC_40.py:19-37 | ATRBench/Classification/ResNet18/SOC_50.py:19-37 | ATRBench/Classification/ResNet34/EOC_A.py:19-37 | ATRBench/Classification/ResNet34/EOC_B.py:19-37 | ATRBench/Classification/ResNet34/EOC_D.py:19-37 | ATRBench/Classification/ResNet34/EOC_P.py:19-37 | ATRBench/Classification/ResNet34/EOC_S.py:20-50 | ATRBench/Classification/ResNet34/SOC_40.py:19-37 | ATRBench/Classification/ResNet34/SOC_50.py:19-37 | ATRBench/Classification/SARatrX/EOC_A.py:19-37 | ATRBench/Classification/SARatrX/EOC_B.py:19-37 | ATRBench/Classification/SARatrX/EOC_D.py:19-37 | ATRBench/Classification/SARatrX/EOC_P.py:19-37 | ATRBench/Classification/SARatrX/EOC_S.py:19-37 | ATRBench/Classification/SARatrX/SOC_40.py:19-37 | ATRBench/Classification/SARatrX/SOC_50.py:19-37 | ATRBench/Classification/SARatrX/SOC_50_05.py:19-37 | ATRBench/Classification/SARatrX/SOC_50_1.py:19-37 | ATRBench/Classification/SARatrX/SOC_50_2.py:19-37 | ATRBench/Classification/SARatrX/SOC_50_4.py:19-37 | ATRBench/Classification/SARatrX/SOC_50_6.py:19-37 | ATRBench/Classification/SARatrX/SOC_50_8.py:19-37 | ATRBench/Classification/Vgg16/EOC_A.py:19-37 | ATRBench/Classification/Vgg16/EOC_B.py:19-37 | ATRBench/Classification/Vgg16/EOC_D.py:19-37 | ATRBench/Classification/Vgg16/EOC_P.py:19-37 | ATRBench/Classification/Vgg16/EOC_S.py:22-45 | ATRBench/Classification/Vgg16/SOC_40.py:19-37 | ATRBench/Classification/Vgg16/SOC_50.py:19-37 | ATRBench/Classification/ViT/EOC_A.py:19-37 | ATRBench/Classification/ViT/EOC_B.py:19-37 | ATRBench/Classification/ViT/EOC_D.py:19-37 | ATRBench/Classification/ViT/EOC_P.py:19-37 | ATRBench/Classification/ViT/EOC_S.py:20-50 | ATRBench/Classification/ViT/SOC_40.py:19-37 | ATRBench/Classification/ViT/SOC_50.py:19-37 \u2014 These 69 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 69 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 69 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/EOC_A.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c5036eefde9586306d6619e0e61c6c53e306954d27dfd22285257636888564"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 26 shared lines): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:81-113 | ATRBench/Classification/ResNet18/model/Model.py:81-113 | ATRBench/Classification/ResNet34/model/Model.py:81-113 | ATRBench/Classification/Vgg16/model/Model.py:81-113 | ATRBench/Classification/ViT/model/Model.py:81-113 \u2014 These 5 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"775cf8a869dd8037cb795cdd6d1dc9a3c784bca88210f5125012cc3aa37b3144"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 25 shared lines): ATRBench/Classification/ConvNeXt/EOC_S.py:20-50 | ATRBench/Classification/HiViT/EOC_S.py:20-50 | ATRBench/Classification/ResNet18/EOC_S.py:20-50 | ATRBench/Classification/ResNet34/EOC_S.py:20-50 | ATRBench/Classification/ViT/EOC_S.py:20-50 \u2014 These 5 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/EOC_S.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90abecfd8eb4c71ad1fa3801a4a0cf88a55845e95fffd32914d098c0d29c9a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 9 shared lines): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:135-151 | ATRBench/Classification/ResNet18/model/Model.py:135-151 | ATRBench/Classification/ResNet34/model/Model.py:135-151 | ATRBench/Classification/Vgg16/model/Model.py:135-151 | ATRBench/Classification/ViT/model/Model.py:135-151 \u2014 These 5 members are variants of one another: a block of 9 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7610cd73ed574e0590afda5434922b1944a7b647f6ce960029624e4641a7c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (25 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/EOC_A.py:40-60 | ATRBench/Classification/ConvNeXt/EOC_B.py:40-60 | ATRBench/Classification/ConvNeXt/EOC_P.py:40-60 | ATRBench/Classification/ConvNeXt/EOC_S.py:53-73 | ATRBench/Classification/ConvNeXt/SOC_40.py:40-60 | ATRBench/Classification/HiViT/EOC_A.py:40-60 | ATRBench/Classification/HiViT/EOC_B.py:40-60 | ATRBench/Classification/HiViT/EOC_D.py:40-60 | ATRBench/Classification/HiViT/EOC_P.py:40-60 | ATRBench/Classification/HiViT/EOC_S.py:53-73 | ATRBench/Classification/HiViT/SOC_40.py:40-60 | ATRBench/Classification/HiViT/SOC_50.py:40-60 | ATRBench/Classification/SARatrX/EOC_B.py:40-60 | ATRBench/Classification/SARatrX/EOC_D.py:40-60 | ATRBench/Classification/SARatrX/EOC_P.py:40-60 | ATRBench/Classification/SARatrX/EOC_S.py:40-60 | ATRBench/Classification/SARatrX/SOC_40.py:40-60 | ATRBench/Classification/SARatrX/SOC_50.py:40-60 | ATRBench/Classification/SARatrX/SOC_50_05.py:40-60 | ATRBench/Classification/SARatrX/SOC_50_1.py:40-60 | ATRBench/Classification/SARatrX/SOC_50_2.py:40-60 | ATRBench/Classification/SARatrX/SOC_50_4.py:40-60 | ATRBench/Classification/SARatrX/SOC_50_6.py:40-60 | ATRBench/Classification/SARatrX/SOC_50_8.py:40-60 | ATRBench/Classification/SARatrX/model/HiVit.py:313-333 \u2014 These 25 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 25 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 25 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/EOC_A.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c91c21306f46a466ac79feb7b2912f8b123154a37374d7b64989cd3edd7833"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/utils/DataTransform.py:38-44 | ATRBench/Classification/ConvNeXt/utils/TestTransform.py:38-44 | ATRBench/Classification/HDANet/utils/DataTransform.py:38-44 | ATRBench/Classification/HDANet/utils/TestTransform.py:38-44 | ATRBench/Classification/HiViT/utils/DataTransform.py:38-44 | ATRBench/Classification/HiViT/utils/TestTransform.py:38-44 | ATRBench/Classification/ResNet18/utils/DataTransform.py:38-44 | ATRBench/Classification/ResNet18/utils/TestTransform.py:38-44 | ATRBench/Classification/ResNet34/utils/DataTransform.py:38-44 | ATRBench/Classification/ResNet34/utils/TestTransform.py:38-44 | ATRBench/Classification/SARatrX/utils/DataTransform.py:38-44 | ATRBench/Classification/SARatrX/utils/TestTransform.py:38-44 | ATRBench/Classification/Vgg16/utils/DataTransform.py:38-44 | ATRBench/Classification/Vgg16/utils/TestTransform.py:38-44 | ATRBench/Classification/ViT/utils/DataTransform.py:38-44 | ATRBench/Classification/ViT/utils/TestTransform.py:38-44 \u2014 These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/DataTransform.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b7a26482492b567eef9a5dcbeb6d2fc6afed86033863ee49836f458d77267e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/utils/DataTransform.py:77-94 | ATRBench/Classification/ConvNeXt/utils/TestTransform.py:67-84 | ATRBench/Classification/HDANet/utils/DataTransform.py:77-94 | ATRBench/Classification/HDANet/utils/TestTransform.py:67-84 | ATRBench/Classification/HiViT/utils/DataTransform.py:77-94 | ATRBench/Classification/HiViT/utils/TestTransform.py:67-84 | ATRBench/Classification/ResNet18/utils/DataTransform.py:77-94 | ATRBench/Classification/ResNet18/utils/TestTransform.py:67-84 | ATRBench/Classification/ResNet34/utils/DataTransform.py:77-94 | ATRBench/Classification/ResNet34/utils/TestTransform.py:67-84 | ATRBench/Classification/SARatrX/utils/DataTransform.py:77-94 | ATRBench/Classification/SARatrX/utils/TestTransform.py:67-84 | ATRBench/Classification/Vgg16/utils/DataTransform.py:77-94 | ATRBench/Classification/Vgg16/utils/TestTransform.py:67-84 | ATRBench/Classification/ViT/utils/DataTransform.py:77-94 | ATRBench/Classification/ViT/utils/TestTransform.py:67-84 \u2014 These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/DataTransform.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82763586ac0a74bbc39f2e66252da5fd7946fc980b64356b485ab0a3515a7a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/utils/DataTransform.py:48-61 | ATRBench/Classification/HDANet/utils/DataTransform.py:48-61 | ATRBench/Classification/HiViT/utils/DataTransform.py:48-61 | ATRBench/Classification/ResNet18/utils/DataTransform.py:48-61 | ATRBench/Classification/ResNet34/utils/DataTransform.py:48-61 | ATRBench/Classification/SARatrX/utils/DataTransform.py:48-61 | ATRBench/Classification/Vgg16/utils/DataTransform.py:48-61 | ATRBench/Classification/ViT/utils/DataTransform.py:48-61 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/DataTransform.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3bb17f76b02d0cabd2515b4511f71af54c1a2f361eb50508baf5e0408a952e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/utils/DataTransform.py:142-155 | ATRBench/Classification/HDANet/utils/DataTransform.py:142-155 | ATRBench/Classification/HiViT/utils/DataTransform.py:142-155 | ATRBench/Classification/ResNet18/utils/DataTransform.py:142-155 | ATRBench/Classification/ResNet34/utils/DataTransform.py:142-155 | ATRBench/Classification/SARatrX/utils/DataTransform.py:142-155 | ATRBench/Classification/Vgg16/utils/DataTransform.py:142-155 | ATRBench/Classification/ViT/utils/DataTransform.py:142-155 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/DataTransform.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3a0f2fc8bd12ec04005aeade3f221a886456725de8f8f99f8d4b489f1b5820"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/utils/DataLoad.py:60-71 | ATRBench/Classification/HiViT/utils/DataLoad.py:54-65 | ATRBench/Classification/ResNet18/utils/DataLoad.py:54-65 | ATRBench/Classification/ResNet34/utils/DataLoad.py:54-65 | ATRBench/Classification/SARatrX/utils/DataLoad.py:54-65 | ATRBench/Classification/Vgg16/utils/DataLoad.py:54-65 | ATRBench/Classification/ViT/utils/DataLoad.py:54-65 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/DataLoad.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0be6c23cf2f2d438e3415fc45f748bb03ab85c0c3365d0d2070694bffa291ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/utils/DataLoad.py:98-122 | ATRBench/Classification/HiViT/utils/DataLoad.py:92-116 | ATRBench/Classification/ResNet18/utils/DataLoad.py:92-116 | ATRBench/Classification/ResNet34/utils/DataLoad.py:92-116 | ATRBench/Classification/Vgg16/utils/DataLoad.py:92-116 | ATRBench/Classification/ViT/utils/DataLoad.py:92-118 \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":"ATRBench/Classification/ConvNeXt/utils/DataLoad.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"701c90f6742732bd9a00a56c1625f9fa0bdef63e32543885a0be1e55907c3170"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:8-19 | ATRBench/Classification/ResNet18/model/Model.py:8-19 | ATRBench/Classification/ResNet34/model/Model.py:8-19 | ATRBench/Classification/Vgg16/model/Model.py:8-19 | ATRBench/Classification/ViT/model/Model.py:8-19 \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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ef63124c65f506d22ac83e22414fb5a8c9a0cbea725a17bffffa64440a4998"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:22-35 | ATRBench/Classification/ResNet18/model/Model.py:22-35 | ATRBench/Classification/ResNet34/model/Model.py:22-35 | ATRBench/Classification/Vgg16/model/Model.py:22-35 | ATRBench/Classification/ViT/model/Model.py:22-35 \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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2cc7eff98c119845133a4556b96aae2b599af377e308e0659540b252b93129"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:56-62 | ATRBench/Classification/ResNet18/model/Model.py:56-62 | ATRBench/Classification/ResNet34/model/Model.py:56-62 | ATRBench/Classification/Vgg16/model/Model.py:56-62 | ATRBench/Classification/ViT/model/Model.py:56-62 \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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2196dc0c9ea347d1ad1f90f70d49df8a1243c3d2cb4ec6746b3f025a679ce943"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:65-69 | ATRBench/Classification/ResNet18/model/Model.py:65-69 | ATRBench/Classification/ResNet34/model/Model.py:65-69 | ATRBench/Classification/Vgg16/model/Model.py:65-69 | ATRBench/Classification/ViT/model/Model.py:65-69 \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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0303b99964bbe08a67c8191b78004d85fceac775137a8637613d16675e5876"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:117-130 | ATRBench/Classification/ResNet18/model/Model.py:117-130 | ATRBench/Classification/ResNet34/model/Model.py:117-130 | ATRBench/Classification/Vgg16/model/Model.py:117-130 | ATRBench/Classification/ViT/model/Model.py:117-130 \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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4c83c1375729d907bf613a7ac3e7f7a710f04775f06dee27f35162c9058f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:155-168 | ATRBench/Classification/ResNet18/model/Model.py:155-168 | ATRBench/Classification/ResNet34/model/Model.py:155-168 | ATRBench/Classification/Vgg16/model/Model.py:155-168 | ATRBench/Classification/ViT/model/Model.py:155-168 \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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdd81cfe51626a91adcb3a8e8f93fdbc5f7326eb18224b8d5c106160414c936"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:173-182 | ATRBench/Classification/ResNet18/model/Model.py:173-182 | ATRBench/Classification/ResNet34/model/Model.py:173-182 | ATRBench/Classification/Vgg16/model/Model.py:173-182 | ATRBench/Classification/ViT/model/Model.py:173-182 \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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6a3c90e60060fe858ce47ea7e69ea9b20dd09e7cbefa516395d41130acf210"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): ATRBench/Classification/HiViT/model/HiVit.py:314-393 | ATRBench/Classification/SARatrX/model/HiVit.py:336-409 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ec8f375d4df9d79218884967d39585163edc94d018b063d419fd10592cdb95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): ATRBench/Classification/HDANet/utils/DataLoad.py:248-277 | ATRBench/Classification/HDANet/utils/DataLoad.py:282-309 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HDANet/utils/DataLoad.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"10935c68dacc26a08b3ad2732e6b0f99fe2a370db4820edb17f9e5fc4943486a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): ATRBench/Classification/HDANet/utils/DataLoad.py:44-55 | ATRBench/Classification/HDANet/utils/DataLoad.py:65-75 \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":"ATRBench/Classification/HDANet/utils/DataLoad.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f204c7757e2c1b1b3f8f50c954e9b8dae6f1458cbe3ab740fd993365d095383a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:48-51 | ATRBench/Classification/ResNet18/model/Model.py:48-51 | ATRBench/Classification/ResNet34/model/Model.py:48-51 | ATRBench/Classification/Vgg16/model/Model.py:48-51 | ATRBench/Classification/ViT/model/Model.py:48-51 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5b6c46b9b82800504b117ae02cfa86095ebe43c7ea60df59d46426f0ffc416"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): ATRBench/Classification/HiViT/model/HiVit.py:94-97 | ATRBench/Classification/SARatrX/model/HiVit.py:94-97 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a965cd5f0fb614323d64ded7dade1c2c438f436ac868a7c98d34835f5e57fca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): ATRBench/Classification/HiViT/model/HiVit.py:307-310 | ATRBench/Classification/SARatrX/model/HiVit.py:307-310 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0775b7e2419bc33f415561e845176bcaae422c2a8d9ba36ca562836f1b82bf5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): ATRBench/Classification/HiViT/model/HiVit.py:142-144 | ATRBench/Classification/SARatrX/model/HiVit.py:142-144 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"65069b90e9ba93d112c48d2eb69e626aa99c73cd54990c41f95350cabec9d615"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:186-189 | ATRBench/Classification/ResNet18/model/Model.py:186-189 | ATRBench/Classification/ResNet34/model/Model.py:186-189 | ATRBench/Classification/Vgg16/model/Model.py:186-189 | ATRBench/Classification/ViT/model/Model.py:186-189 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc30a49faa84f16a9d297cace4128142f667ef9094ec4695f94a7705bd73f01c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:175-241 | ATRBench/Classification/SARatrX/model/HiVit.py:175-241 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b758487b5b104a1b2bacf1ab28aabf749a9affcca46f58323cb69c7b94c849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:261-296 | ATRBench/Classification/SARatrX/model/HiVit.py:261-296 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fd8882a5ed6cc9cced1531860318582eed018eb4b2edcecc00233d2372bc0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:340-393 | ATRBench/Classification/SARatrX/model/HiVit.py:356-409 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ATRBench/Classification/SARatrX/model/HiVit.py:354\u0060 calls \u0060interpolate_pos_embed\u0060 and \u0060ATRBench/Classification/HiViT/model/HiVit.py:335\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b592f0f3fe74c314021cfc6f3dfae256a90340dd59fb3556ba693ef9efbba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 6): ATRBench/Classification/ConvNeXt/utils/DataLoad.py:98-122 | ATRBench/Classification/HiViT/utils/DataLoad.py:92-116 | ATRBench/Classification/ResNet18/utils/DataLoad.py:92-116 | ATRBench/Classification/ResNet34/utils/DataLoad.py:92-116 | ATRBench/Classification/Vgg16/utils/DataLoad.py:92-116 | ATRBench/Classification/ViT/utils/DataLoad.py:92-118 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/DataLoad.py\u0060 and \u0060ATRBench/Classification/HiViT/utils/DataLoad.py\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/DataLoad.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a806f862f63cfcd4dc6fd3ee4371dcfaa0a0cffed13eaef1a6147c949473eaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:104-124 | ATRBench/Classification/SARatrX/model/HiVit.py:104-124 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ATRBench/Classification/HiViT/model/HiVit.py:104\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe8b49a495ded50996b4f367f9af260e78522636b05a0ce0de0c36c873c3625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201319 lines \u00D7 10): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:95-113 | ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:148-149 | ATRBench/Classification/ResNet18/model/Model.py:95-113 | ATRBench/Classification/ResNet18/model/Model.py:148-149 | ATRBench/Classification/ResNet34/model/Model.py:95-113 | ATRBench/Classification/ResNet34/model/Model.py:148-149 | ATRBench/Classification/Vgg16/model/Model.py:95-113 | ATRBench/Classification/Vgg16/model/Model.py:148-149 | ATRBench/Classification/ViT/model/Model.py:95-113 | ATRBench/Classification/ViT/model/Model.py:148-149 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"929d97db32396258ac3b36e051e46117cf588b083af18a519de9cdffdd272875"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 69): ATRBench/Classification/ConvNeXt/EOC_A.py:19-35 | ATRBench/Classification/ConvNeXt/EOC_B.py:19-35 | ATRBench/Classification/ConvNeXt/EOC_D.py:19-35 | ATRBench/Classification/ConvNeXt/EOC_P.py:19-35 | ATRBench/Classification/ConvNeXt/EOC_S.py:20-36 | ATRBench/Classification/ConvNeXt/SOC_40.py:19-35 | ATRBench/Classification/ConvNeXt/SOC_50.py:19-35 | ATRBench/Classification/ConvNeXt/SOC_50_05.py:19-35 | ATRBench/Classification/ConvNeXt/SOC_50_1.py:19-35 | ATRBench/Classification/ConvNeXt/SOC_50_2.py:19-35 | ATRBench/Classification/ConvNeXt/SOC_50_4.py:19-35 | ATRBench/Classification/ConvNeXt/SOC_50_6.py:19-35 | ATRBench/Classification/ConvNeXt/SOC_50_8.py:19-35 | ATRBench/Classification/HDANet/Main_EOC_A.py:15-31 | ATRBench/Classification/HDANet/Main_EOC_B.py:15-31 | ATRBench/Classification/HDANet/Main_EOC_D.py:15-31 | ATRBench/Classification/HDANet/Main_EOC_P.py:15-31 | ATRBench/Classification/HDANet/Main_EOC_S.py:15-31 | ATRBench/Classification/HDANet/Main_SOC_40.py:15-31 | ATRBench/Classification/HDANet/Main_SOC_50.py:15-31 | ATRBench/Classification/HDANet/Model/VGG16.py:177-191 | ATRBench/Classification/HiViT/EOC_A.py:19-35 | ATRBench/Classification/HiViT/EOC_B.py:19-35 | ATRBench/Classification/HiViT/EOC_D.py:19-35 | ATRBench/Classification/HiViT/EOC_P.py:19-35 | ATRBench/Classification/HiViT/EOC_S.py:20-36 | ATRBench/Classification/HiViT/SOC_40.py:19-35 | ATRBench/Classification/HiViT/SOC_50.py:19-35 | ATRBench/Classification/ResNet18/EOC_A.py:19-35 | ATRBench/Classification/ResNet18/EOC_B.py:19-35 | ATRBench/Classification/ResNet18/EOC_D.py:19-35 | ATRBench/Classification/ResNet18/EOC_P.py:19-35 | ATRBench/Classification/ResNet18/EOC_S.py:20-36 | ATRBench/Classification/ResNet18/SOC_40.py:19-35 | ATRBench/Classification/ResNet18/SOC_50.py:19-35 | ATRBench/Classification/ResNet34/EOC_A.py:19-35 | ATRBench/Classification/ResNet34/EOC_B.py:19-35 | ATRBench/Classification/ResNet34/EOC_D.py:19-35 | ATRBench/Classification/ResNet34/EOC_P.py:19-35 | ATRBench/Classification/ResNet34/EOC_S.py:20-36 | ATRBench/Classification/ResNet34/SOC_40.py:19-35 | ATRBench/Classification/ResNet34/SOC_50.py:19-35 | ATRBench/Classification/SARatrX/EOC_A.py:19-35 | ATRBench/Classification/SARatrX/EOC_B.py:19-35 | ATRBench/Classification/SARatrX/EOC_D.py:19-35 | ATRBench/Classification/SARatrX/EOC_P.py:19-35 | ATRBench/Classification/SARatrX/EOC_S.py:19-35 | ATRBench/Classification/SARatrX/SOC_40.py:19-35 | ATRBench/Classification/SARatrX/SOC_50.py:19-35 | ATRBench/Classification/SARatrX/SOC_50_05.py:19-35 | ATRBench/Classification/SARatrX/SOC_50_1.py:19-35 | ATRBench/Classification/SARatrX/SOC_50_2.py:19-35 | ATRBench/Classification/SARatrX/SOC_50_4.py:19-35 | ATRBench/Classification/SARatrX/SOC_50_6.py:19-35 | ATRBench/Classification/SARatrX/SOC_50_8.py:19-35 | ATRBench/Classification/Vgg16/EOC_A.py:19-35 | ATRBench/Classification/Vgg16/EOC_B.py:19-35 | ATRBench/Classification/Vgg16/EOC_D.py:19-35 | ATRBench/Classification/Vgg16/EOC_P.py:19-35 | ATRBench/Classification/Vgg16/EOC_S.py:22-38 | ATRBench/Classification/Vgg16/SOC_40.py:19-35 | ATRBench/Classification/Vgg16/SOC_50.py:19-35 | ATRBench/Classification/ViT/EOC_A.py:19-35 | ATRBench/Classification/ViT/EOC_B.py:19-35 | ATRBench/Classification/ViT/EOC_D.py:19-35 | ATRBench/Classification/ViT/EOC_P.py:19-35 | ATRBench/Classification/ViT/EOC_S.py:20-36 | ATRBench/Classification/ViT/SOC_40.py:19-35 | ATRBench/Classification/ViT/SOC_50.py:19-35 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/EOC_A.py\u0060 and \u0060ATRBench/Classification/ConvNeXt/EOC_B.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/EOC_A.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0bc7d34e1c1aa66a3c83fbfac2ace00c3ed66b4a00c8fae0af1d8debca8cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:13-43 | ATRBench/Classification/SARatrX/model/HiVit.py:13-43 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"486171023163364c3d27ef7c654c3bf0242f30271a6144b226eff38ad158ccc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:75-90 | ATRBench/Classification/SARatrX/model/HiVit.py:75-90 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5301d576c8f758c73ca28e8ff07d9de71180f2b0a88d347f71a281c79f924c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 16): ATRBench/Classification/ConvNeXt/utils/DataTransform.py:80-94 | ATRBench/Classification/ConvNeXt/utils/TestTransform.py:70-84 | ATRBench/Classification/HDANet/utils/DataTransform.py:80-94 | ATRBench/Classification/HDANet/utils/TestTransform.py:70-84 | ATRBench/Classification/HiViT/utils/DataTransform.py:80-94 | ATRBench/Classification/HiViT/utils/TestTransform.py:70-84 | ATRBench/Classification/ResNet18/utils/DataTransform.py:80-94 | ATRBench/Classification/ResNet18/utils/TestTransform.py:70-84 | ATRBench/Classification/ResNet34/utils/DataTransform.py:80-94 | ATRBench/Classification/ResNet34/utils/TestTransform.py:70-84 | ATRBench/Classification/SARatrX/utils/DataTransform.py:80-94 | ATRBench/Classification/SARatrX/utils/TestTransform.py:70-84 | ATRBench/Classification/Vgg16/utils/DataTransform.py:80-94 | ATRBench/Classification/Vgg16/utils/TestTransform.py:70-84 | ATRBench/Classification/ViT/utils/DataTransform.py:80-94 | ATRBench/Classification/ViT/utils/TestTransform.py:70-84 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/DataTransform.py\u0060 and \u0060ATRBench/Classification/HDANet/utils/DataTransform.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/ConvNeXt/utils/DataTransform.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5635d6c71becb90eeb132138a40653ddc8b31b1fd9d36dc4d1bc2e4af7536b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:22-35 | ATRBench/Classification/ResNet18/model/Model.py:22-35 | ATRBench/Classification/ResNet34/model/Model.py:22-35 | ATRBench/Classification/Vgg16/model/Model.py:22-35 | ATRBench/Classification/ViT/model/Model.py:22-35 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3ed39d37fb356ef5308d97703d38522c7cb8ecef995c9de9ea3709ac4b8db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:155-168 | ATRBench/Classification/ResNet18/model/Model.py:155-168 | ATRBench/Classification/ResNet34/model/Model.py:155-168 | ATRBench/Classification/Vgg16/model/Model.py:155-168 | ATRBench/Classification/ViT/model/Model.py:155-168 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba1eca0850ab940effaa9d8aab775956f7cd39a66abaf241b16a7e2299ad3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:46-68 | ATRBench/Classification/SARatrX/model/HiVit.py:46-68 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ATRBench/Classification/HiViT/model/HiVit.py:46\u0060 it does not close everything it opens, so those exact lines 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":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"311b539899e1e0f55ba7e397ab97070b3e89dcc4e576acd81e5f0a84b462111d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 24): ATRBench/Classification/ConvNeXt/EOC_A.py:40-51 | ATRBench/Classification/ConvNeXt/EOC_B.py:40-51 | ATRBench/Classification/ConvNeXt/EOC_P.py:40-51 | ATRBench/Classification/ConvNeXt/EOC_S.py:53-64 | ATRBench/Classification/ConvNeXt/SOC_40.py:40-51 | ATRBench/Classification/HiViT/EOC_A.py:40-51 | ATRBench/Classification/HiViT/EOC_B.py:40-51 | ATRBench/Classification/HiViT/EOC_D.py:40-51 | ATRBench/Classification/HiViT/EOC_P.py:40-51 | ATRBench/Classification/HiViT/EOC_S.py:53-64 | ATRBench/Classification/HiViT/SOC_40.py:40-51 | ATRBench/Classification/HiViT/SOC_50.py:40-51 | ATRBench/Classification/SARatrX/EOC_B.py:40-51 | ATRBench/Classification/SARatrX/EOC_D.py:40-51 | ATRBench/Classification/SARatrX/EOC_P.py:40-51 | ATRBench/Classification/SARatrX/EOC_S.py:40-51 | ATRBench/Classification/SARatrX/SOC_40.py:40-51 | ATRBench/Classification/SARatrX/SOC_50.py:40-51 | ATRBench/Classification/SARatrX/SOC_50_05.py:40-51 | ATRBench/Classification/SARatrX/SOC_50_1.py:40-51 | ATRBench/Classification/SARatrX/SOC_50_2.py:40-51 | ATRBench/Classification/SARatrX/SOC_50_4.py:40-51 | ATRBench/Classification/SARatrX/SOC_50_6.py:40-51 | ATRBench/Classification/SARatrX/SOC_50_8.py:40-51 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/EOC_A.py\u0060 and \u0060ATRBench/Classification/ConvNeXt/EOC_B.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/EOC_A.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90e0f57cc269a720ff8b12349f07e269d015483f076665df062848acbfc2345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): ATRBench/Classification/ConvNeXt/utils/DataTransform.py:142-155 | ATRBench/Classification/HDANet/utils/DataTransform.py:142-155 | ATRBench/Classification/HiViT/utils/DataTransform.py:142-155 | ATRBench/Classification/ResNet18/utils/DataTransform.py:142-155 | ATRBench/Classification/ResNet34/utils/DataTransform.py:142-155 | ATRBench/Classification/SARatrX/utils/DataTransform.py:142-155 | ATRBench/Classification/Vgg16/utils/DataTransform.py:142-155 | ATRBench/Classification/ViT/utils/DataTransform.py:142-155 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/DataTransform.py\u0060 and \u0060ATRBench/Classification/HDANet/utils/DataTransform.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/ConvNeXt/utils/DataTransform.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"06612bdd65cdb68042df8c8fc3b4a1db4c18253938c69b50b548fb4b983642ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): ATRBench/Classification/ConvNeXt/utils/DataLoad.py:60-71 | ATRBench/Classification/HiViT/utils/DataLoad.py:54-65 | ATRBench/Classification/ResNet18/utils/DataLoad.py:54-65 | ATRBench/Classification/ResNet34/utils/DataLoad.py:54-65 | ATRBench/Classification/SARatrX/utils/DataLoad.py:54-65 | ATRBench/Classification/Vgg16/utils/DataLoad.py:54-65 | ATRBench/Classification/ViT/utils/DataLoad.py:54-65 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/DataLoad.py\u0060 and \u0060ATRBench/Classification/HiViT/utils/DataLoad.py\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/DataLoad.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cbc8be8efc0e4f652fd6300bdd3c694f553e28c953009697df9d90bdb49d56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 25): ATRBench/Classification/ConvNeXt/EOC_A.py:46-60 | ATRBench/Classification/ConvNeXt/EOC_B.py:46-60 | ATRBench/Classification/ConvNeXt/EOC_P.py:46-60 | ATRBench/Classification/ConvNeXt/EOC_S.py:59-73 | ATRBench/Classification/ConvNeXt/SOC_40.py:46-60 | ATRBench/Classification/HiViT/EOC_A.py:46-60 | ATRBench/Classification/HiViT/EOC_B.py:46-60 | ATRBench/Classification/HiViT/EOC_D.py:46-60 | ATRBench/Classification/HiViT/EOC_P.py:46-60 | ATRBench/Classification/HiViT/EOC_S.py:59-73 | ATRBench/Classification/HiViT/SOC_40.py:46-60 | ATRBench/Classification/HiViT/SOC_50.py:46-60 | ATRBench/Classification/SARatrX/EOC_B.py:46-60 | ATRBench/Classification/SARatrX/EOC_D.py:46-60 | ATRBench/Classification/SARatrX/EOC_P.py:46-60 | ATRBench/Classification/SARatrX/EOC_S.py:46-60 | ATRBench/Classification/SARatrX/SOC_40.py:46-60 | ATRBench/Classification/SARatrX/SOC_50.py:46-60 | ATRBench/Classification/SARatrX/SOC_50_05.py:46-60 | ATRBench/Classification/SARatrX/SOC_50_1.py:46-60 | ATRBench/Classification/SARatrX/SOC_50_2.py:46-60 | ATRBench/Classification/SARatrX/SOC_50_4.py:46-60 | ATRBench/Classification/SARatrX/SOC_50_6.py:46-60 | ATRBench/Classification/SARatrX/SOC_50_8.py:46-60 | ATRBench/Classification/SARatrX/model/HiVit.py:319-333 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/EOC_A.py\u0060 and \u0060ATRBench/Classification/ConvNeXt/EOC_B.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/EOC_A.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c47cad8210014d9cd3674d1edac9520a7c741008634bb1767c6882f9b94c90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:117-130 | ATRBench/Classification/ResNet18/model/Model.py:117-130 | ATRBench/Classification/ResNet34/model/Model.py:117-130 | ATRBench/Classification/Vgg16/model/Model.py:117-130 | ATRBench/Classification/ViT/model/Model.py:117-130 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e189e6c1c2b5e4c1cc58d93e97816a836c113f3f361bd1d160bf258ce6338f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ATRBench/Classification/HDANet/Model/VGG16.py:79-89 | ATRBench/Classification/HDANet/utils/DataLoad.py:119-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HDANet/Model/VGG16.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ed6c14a60f229e4de66f81cedc2d0d7e2e5811b1df7c7c71da7d84317caedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:173-182 | ATRBench/Classification/ResNet18/model/Model.py:173-182 | ATRBench/Classification/ResNet34/model/Model.py:173-182 | ATRBench/Classification/Vgg16/model/Model.py:173-182 | ATRBench/Classification/ViT/model/Model.py:173-182 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ca46cb5441b89f9e7b7f08b0381a61c4e9729c08ff00efb9a3bb5888c7c835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ATRBench/Classification/HDANet/utils/DataLoad.py:263-271 | ATRBench/Classification/HDANet/utils/DataLoad.py:297-305 \u2014 both copies are in the same file, so extract the block 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, \u0060ATRBench/Classification/HDANet/utils/DataLoad.py:272\u0060 calls \u0060sailency\u0060 and \u0060ATRBench/Classification/HDANet/utils/DataLoad.py:306\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HDANet/utils/DataLoad.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbe0537bf5fd983a06af1d5ecb9252634762a430aa2f319bb840ebd1b78bf12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:147-165 | ATRBench/Classification/SARatrX/model/HiVit.py:147-165 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ATRBench/Classification/HiViT/model/HiVit.py:147\u0060 it does not close everything it opens, so those exact lines 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":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a1fc8795bd0dfe91f92b2cd7774a34493f560bee847685dcdd6397ee63d241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): ATRBench/Classification/ConvNeXt/utils/DataTransform.py:48-61 | ATRBench/Classification/HDANet/utils/DataTransform.py:48-61 | ATRBench/Classification/HiViT/utils/DataTransform.py:48-61 | ATRBench/Classification/ResNet18/utils/DataTransform.py:48-61 | ATRBench/Classification/ResNet34/utils/DataTransform.py:48-61 | ATRBench/Classification/SARatrX/utils/DataTransform.py:48-61 | ATRBench/Classification/Vgg16/utils/DataTransform.py:48-61 | ATRBench/Classification/ViT/utils/DataTransform.py:48-61 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/DataTransform.py\u0060 and \u0060ATRBench/Classification/HDANet/utils/DataTransform.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/ConvNeXt/utils/DataTransform.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b796f157eb1860435ea0e358cb8aef26dc1fb41821ff003df637389767c81b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): ATRBench/Classification/HDANet/Model/VGG16.py:156-163 | ATRBench/Classification/HDANet/utils/DataLoad.py:248-255 | ATRBench/Classification/HDANet/utils/DataLoad.py:282-289 \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":"ATRBench/Classification/HDANet/Model/VGG16.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2c02b174540c85526ff63a105cbfc9cd21eab8db5716e4ddcbf94794e9d935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:56-62 | ATRBench/Classification/ResNet18/model/Model.py:56-62 | ATRBench/Classification/ResNet34/model/Model.py:56-62 | ATRBench/Classification/Vgg16/model/Model.py:56-62 | ATRBench/Classification/ViT/model/Model.py:56-62 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6702d05cf2fbb66835d6e355e7c553c722b7858594c49f6da0e2dd1572e64ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:81-87 | ATRBench/Classification/ResNet18/model/Model.py:81-87 | ATRBench/Classification/ResNet34/model/Model.py:81-87 | ATRBench/Classification/Vgg16/model/Model.py:81-87 | ATRBench/Classification/ViT/model/Model.py:81-87 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"76362a1456f604093a5549eea400afbbc03729105253505b53a548e8ed119fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:135-141 | ATRBench/Classification/ResNet18/model/Model.py:135-141 | ATRBench/Classification/ResNet34/model/Model.py:135-141 | ATRBench/Classification/Vgg16/model/Model.py:135-141 | ATRBench/Classification/ViT/model/Model.py:135-141 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed4e1635f973e1af9928bdee2ed05c6e587d585c0b8b60df16c51e94388c9e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:127-137 | ATRBench/Classification/SARatrX/model/HiVit.py:127-137 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ATRBench/Classification/HiViT/model/HiVit.py:127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd773d3fd58d8b9f559f23c451d07503d6e44ca54e0cbd174b5b8aa34a64bdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ATRBench/Classification/HDANet/Model/VGG16.py:92-97 | ATRBench/Classification/HDANet/utils/DataLoad.py:132-137 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HDANet/Model/VGG16.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fcde04aa149abadd18277951611affd805b0a6a70dd3acc475c36c91adc596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:8-19 | ATRBench/Classification/ResNet18/model/Model.py:8-19 | ATRBench/Classification/ResNet34/model/Model.py:8-19 | ATRBench/Classification/Vgg16/model/Model.py:8-19 | ATRBench/Classification/ViT/model/Model.py:8-19 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e64c485e2ebc23f3200a58e44659c7005b1558f6502f34672df23dfb8700a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:244-250 | ATRBench/Classification/SARatrX/model/HiVit.py:244-250 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"560bff49b970891088dfadcf8d80bb68776d1ce4d8a6d27ac49531f2e89e7662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:330-335 | ATRBench/Classification/SARatrX/model/HiVit.py:346-351 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ATRBench/Classification/SARatrX/model/HiVit.py:354\u0060 calls \u0060interpolate_pos_embed\u0060 and \u0060ATRBench/Classification/HiViT/model/HiVit.py:340\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"490fdbd9e5c8e2bb1d06cc2a89ddac03d75be876b8babdbde5f1188400251778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:40-45 | ATRBench/Classification/ResNet18/model/Model.py:40-45 | ATRBench/Classification/ResNet34/model/Model.py:40-45 | ATRBench/Classification/Vgg16/model/Model.py:40-45 | ATRBench/Classification/ViT/model/Model.py:40-45 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce8e590677127b8306b4e1c7df8de796d495bfe5834dcf67f09069065586191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:194-199 | ATRBench/Classification/ResNet34/model/Model.py:194-199 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet34/model/Model.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"5408d2269345419e4d1730864471daca66ebfc0aea40b1eb23ee10be16f6af66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:208-212 | ATRBench/Classification/ResNet18/model/Model.py:208-212 | ATRBench/Classification/ResNet34/model/Model.py:208-212 | ATRBench/Classification/Vgg16/model/Model.py:208-212 | ATRBench/Classification/ViT/model/Model.py:227-231 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6b7a3d631daa36823da1dc7412d57a8c06927d1be52896e89af8eb481ef02b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:222-227 | ATRBench/Classification/ResNet18/model/Model.py:222-227 | ATRBench/Classification/ResNet34/model/Model.py:222-227 | ATRBench/Classification/Vgg16/model/Model.py:222-227 | ATRBench/Classification/ViT/model/Model.py:241-246 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75a290d87413889b2f23ec7d28456a1a5129a5b2661263be45fc82f0818c1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:237-242 | ATRBench/Classification/ResNet18/model/Model.py:237-242 | ATRBench/Classification/ResNet34/model/Model.py:237-242 | ATRBench/Classification/Vgg16/model/Model.py:237-242 | ATRBench/Classification/ViT/model/Model.py:256-261 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"11120f160aa4efd9495ce866533aa0a2fe7887c40bfdfd86ee7dd2c78f8097af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:253-258 | ATRBench/Classification/ResNet18/model/Model.py:253-258 | ATRBench/Classification/ResNet34/model/Model.py:253-258 | ATRBench/Classification/Vgg16/model/Model.py:253-258 | ATRBench/Classification/ViT/model/Model.py:272-277 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b7bb6c0bcde30e5bee63a09163b9e0426c4cb14f19deca2590c5f8291bbccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): ATRBench/Classification/ConvNeXt/utils/DataTransform.py:284-294 | ATRBench/Classification/HDANet/utils/DataTransform.py:284-294 | ATRBench/Classification/HiViT/utils/DataTransform.py:284-294 | ATRBench/Classification/ResNet18/utils/DataTransform.py:284-294 | ATRBench/Classification/ResNet34/utils/DataTransform.py:284-294 | ATRBench/Classification/SARatrX/utils/DataTransform.py:284-294 | ATRBench/Classification/Vgg16/utils/DataTransform.py:284-294 | ATRBench/Classification/ViT/utils/DataTransform.py:284-294 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/DataTransform.py\u0060 and \u0060ATRBench/Classification/HDANet/utils/DataTransform.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/ConvNeXt/utils/DataTransform.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"18320d76bee0bb5bf93eccc7d8f4786b8c92de74d1ea2b2df9537083a813a23e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ATRBench/Classification/HiViT/model/HiVit.py:299-303 | ATRBench/Classification/SARatrX/model/HiVit.py:299-303 \u2014 before extracting anything, compare \u0060ATRBench/Classification/HiViT/model/HiVit.py\u0060 and \u0060ATRBench/Classification/SARatrX/model/HiVit.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f495a1fab4cb4d7d601bb2b7c457a4bbbeb782acc5e6b38175df5eb513f6c306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): ATRBench/Classification/ConvNeXt/EOC_S.py:43-50 | ATRBench/Classification/HiViT/EOC_S.py:43-50 | ATRBench/Classification/ResNet18/EOC_S.py:43-50 | ATRBench/Classification/ResNet34/EOC_S.py:43-50 | ATRBench/Classification/ViT/EOC_S.py:43-50 \u2014 \u0060ATRBench/Classification/ConvNeXt/EOC_S.py\u0060 and \u0060ATRBench/Classification/HiViT/EOC_S.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ATRBench/Classification/ConvNeXt/EOC_S.py:43\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/EOC_S.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc316d8ac87e48dc38555a1551116da20d3c64200a4c8b5793d76a5769dac28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): ATRBench/Classification/ConvNeXt/model/ConvNeXt.py:65-69 | ATRBench/Classification/ResNet18/model/Model.py:65-69 | ATRBench/Classification/ResNet34/model/Model.py:65-69 | ATRBench/Classification/Vgg16/model/Model.py:65-69 | ATRBench/Classification/ViT/model/Model.py:65-69 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/model/ConvNeXt.py\u0060 and \u0060ATRBench/Classification/ResNet18/model/Model.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"ATRBench/Classification/ConvNeXt/model/ConvNeXt.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf76d31269dd4f9ba5c4ec2affd148ade9dd2001683c3352b20b57fb924953f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 16): ATRBench/Classification/ConvNeXt/utils/DataTransform.py:38-44 | ATRBench/Classification/ConvNeXt/utils/TestTransform.py:38-44 | ATRBench/Classification/HDANet/utils/DataTransform.py:38-44 | ATRBench/Classification/HDANet/utils/TestTransform.py:38-44 | ATRBench/Classification/HiViT/utils/DataTransform.py:38-44 | ATRBench/Classification/HiViT/utils/TestTransform.py:38-44 | ATRBench/Classification/ResNet18/utils/DataTransform.py:38-44 | ATRBench/Classification/ResNet18/utils/TestTransform.py:38-44 | ATRBench/Classification/ResNet34/utils/DataTransform.py:38-44 | ATRBench/Classification/ResNet34/utils/TestTransform.py:38-44 | ATRBench/Classification/SARatrX/utils/DataTransform.py:38-44 | ATRBench/Classification/SARatrX/utils/TestTransform.py:38-44 | ATRBench/Classification/Vgg16/utils/DataTransform.py:38-44 | ATRBench/Classification/Vgg16/utils/TestTransform.py:38-44 | ATRBench/Classification/ViT/utils/DataTransform.py:38-44 | ATRBench/Classification/ViT/utils/TestTransform.py:38-44 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/DataTransform.py\u0060 and \u0060ATRBench/Classification/HDANet/utils/DataTransform.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/DataTransform.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e26955a28c3684e34a2b630d564f30dafbd3e9fa4c66ed93962e1c212d5249"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/utils/TestTransform.py:99-111 | ATRBench/Classification/HDANet/utils/TestTransform.py:99-111 | ATRBench/Classification/HiViT/utils/TestTransform.py:99-111 | ATRBench/Classification/ResNet18/utils/TestTransform.py:99-111 | ATRBench/Classification/ResNet34/utils/TestTransform.py:99-111 | ATRBench/Classification/SARatrX/utils/TestTransform.py:99-111 | ATRBench/Classification/Vgg16/utils/TestTransform.py:99-111 | ATRBench/Classification/ViT/utils/TestTransform.py:99-111 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/TestTransform.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae435a7b4739c9a16e5c191601e89535f2170896b0bde931e6c26c1dc66132f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/utils/TestTransform.py:121-136 | ATRBench/Classification/HDANet/utils/TestTransform.py:121-136 | ATRBench/Classification/HiViT/utils/TestTransform.py:121-136 | ATRBench/Classification/ResNet18/utils/TestTransform.py:121-136 | ATRBench/Classification/ResNet34/utils/TestTransform.py:121-136 | ATRBench/Classification/SARatrX/utils/TestTransform.py:121-136 | ATRBench/Classification/Vgg16/utils/TestTransform.py:121-136 | ATRBench/Classification/ViT/utils/TestTransform.py:121-136 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/TestTransform.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c982fad72e8f3eb581737838504424c3ec66fd3e374541751cac64bfa4fd2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): ATRBench/Classification/ConvNeXt/utils/TestTransform.py:146-169 | ATRBench/Classification/HDANet/utils/TestTransform.py:146-169 | ATRBench/Classification/HiViT/utils/TestTransform.py:146-169 | ATRBench/Classification/ResNet18/utils/TestTransform.py:146-169 | ATRBench/Classification/ResNet34/utils/TestTransform.py:146-169 | ATRBench/Classification/SARatrX/utils/TestTransform.py:146-169 | ATRBench/Classification/Vgg16/utils/TestTransform.py:146-169 | ATRBench/Classification/ViT/utils/TestTransform.py:146-169 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/TestTransform.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa212deda59506342649ad260713a8d566d3511d5de5190e4a8efddbd33af1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): ATRBench/Classification/ConvNeXt/utils/TestTransform.py:121-136 | ATRBench/Classification/HDANet/utils/TestTransform.py:121-136 | ATRBench/Classification/HiViT/utils/TestTransform.py:121-136 | ATRBench/Classification/ResNet18/utils/TestTransform.py:121-136 | ATRBench/Classification/ResNet34/utils/TestTransform.py:121-136 | ATRBench/Classification/SARatrX/utils/TestTransform.py:121-136 | ATRBench/Classification/Vgg16/utils/TestTransform.py:121-136 | ATRBench/Classification/ViT/utils/TestTransform.py:121-136 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/TestTransform.py\u0060 and \u0060ATRBench/Classification/HDANet/utils/TestTransform.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/TestTransform.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf6ff2d1574fc347c3cfed9428ad2e9f7ecd2a0806b0f648e1b124fe92ece26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): ATRBench/Classification/ConvNeXt/utils/TestTransform.py:99-111 | ATRBench/Classification/HDANet/utils/TestTransform.py:99-111 | ATRBench/Classification/HiViT/utils/TestTransform.py:99-111 | ATRBench/Classification/ResNet18/utils/TestTransform.py:99-111 | ATRBench/Classification/ResNet34/utils/TestTransform.py:99-111 | ATRBench/Classification/SARatrX/utils/TestTransform.py:99-111 | ATRBench/Classification/Vgg16/utils/TestTransform.py:99-111 | ATRBench/Classification/ViT/utils/TestTransform.py:99-111 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/TestTransform.py\u0060 and \u0060ATRBench/Classification/HDANet/utils/TestTransform.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/TestTransform.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"991659a84188a4f2c042ec1303369bfc06b01ab391be80d41e95f447356b11f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 8): ATRBench/Classification/ConvNeXt/utils/TestTransform.py:146-169 | ATRBench/Classification/HDANet/utils/TestTransform.py:146-169 | ATRBench/Classification/HiViT/utils/TestTransform.py:146-169 | ATRBench/Classification/ResNet18/utils/TestTransform.py:146-169 | ATRBench/Classification/ResNet34/utils/TestTransform.py:146-169 | ATRBench/Classification/SARatrX/utils/TestTransform.py:146-169 | ATRBench/Classification/Vgg16/utils/TestTransform.py:146-169 | ATRBench/Classification/ViT/utils/TestTransform.py:146-169 \u2014 before extracting anything, compare \u0060ATRBench/Classification/ConvNeXt/utils/TestTransform.py\u0060 and \u0060ATRBench/Classification/HDANet/utils/TestTransform.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/utils/TestTransform.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1df39d1a92f4e22a87c08d1591c46d4a287279737a655ccc0d8d3fc23cbde6"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack: revise model\u0027s head with BN \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/SARatrX/model/HiVit.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a09d36b0787ef5a76ea8eb608a3b171d7b67d893d6d845d1bc2c61fd5f9bb9b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack: revise model\u0027s head with BN \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb5aeb7bc287ee9b2ccefda20230afe8738e90a3ecc6031afd915948139bf18"}},{"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":"5da799677014507fbd0302a1d1aefb14efd9c0111f2d3d4047acc4d7380733be"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"47e014974031be1a227fb8d8bb691042bbcb6ad67ae19ba19f998bf271ea634f"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"ea90be90f92aecac676b118e48b20d747ad18bbd8c7487c6cf542c69b2c0116c"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"5da4369add595a9bbf41124be60701a53c68ba345044880f7b000f35b2bdccf0"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"8472d1e244f1667a6b43da6001fd8884676bee5159c7ac4fca38d2225f4ff17c"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"beebf8b17ad4e0f7cab8db1603c4fac2c332857b3ff5922a742ff6ba71302bb5"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"3bbd8677540179b056bee5f0aedffc4354a8c403a3e732e391523a4e0768d37f"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"d2eff976d430c6db01f7f84d637f2928902ddae4b86e409d66c7b7447af49f2b"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"76cf956f3cffcb71877cf0b7cf45d97a239b1306f0e2e11ad92c9f06b9c7bc35"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"f9e1dce62daf3a2b87050336db330521845549ac19d8ac0550b3fc4f1cb91626"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"57f411e2df9129525b9796a5936e440c2c1caa43f6723a8ef0f345062a70d334"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"899cf476a1015bcb483525e85b6ced8e442c5b5bb54a92fc8491798f51b1db3a"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 101 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 101 of the 116 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: ATRBench/Classification/ConvNeXt/EOC_D.py. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/EOC_D.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"362dcdb259957e38402b7438bdfdc7e6f6d7b97e36e09c5488829d1cba3cc4c4"}},{"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":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"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":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060embed_dim == self.num_features or stage_i \u003E= 2\u0060 appears character-identically in 2 files \u2014 ATRBench/Classification/HiViT/model/HiVit.py, ATRBench/Classification/SARatrX/model/HiVit.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2d9fd81ea8a5a3cc917b7786c86d9e1a51431284a9101c1e39e555d0d940d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(m, nn.Linear) and m.bias is not None\u0060 appears character-identically in 2 files \u2014 ATRBench/Classification/HiViT/model/HiVit.py, ATRBench/Classification/SARatrX/model/HiVit.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"a491f7b23ad4aeb996ae650e7a19752a2b46c6a41e3f1c1b529dc1784cdcab6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(state, dict) and \u0022state_dict\u0022 in state and isinstance(state[\u0022state_dict\u0022], dict)\u0060 appears character-identically in 6 files \u2014 ATRBench/Classification/ConvNeXt/EOC_S.py, ATRBench/Classification/HiViT/EOC_S.py, ATRBench/Classification/ResNet18/EOC_S.py, ATRBench/Classification/ResNet34/EOC_S.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/ConvNeXt/EOC_S.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5821e4282500e93c8612c2fceb303c70db81110e0e144fa536339676c230d329"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k in checkpoint_model and checkpoint_model[k].shape != state_dict[k].shape\u0060 appears character-identically in 2 files \u2014 ATRBench/Classification/HiViT/model/HiVit.py, ATRBench/Classification/SARatrX/model/HiVit.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ATRBench/Classification/HiViT/model/HiVit.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"909bbd5cd2d213c56285de7e958ce6e79615989325af46c09038aad4be821e2d"}}],"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-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-611","guid":"1afbae66-ea29-2d59-aaa2-134e3ae2e85a","name":"Improper Restriction of XML External Entity Reference","shortDescription":{"text":"Improper Restriction of XML External Entity Reference"},"helpUri":"https://cwe.mitre.org/data/definitions/611.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-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":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"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/"}]}],"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":12,"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."]}]}