{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"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":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"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":"VAAT.forward (cyclomatic 28): VAAT.forward has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: vit_pytorch/vaat.py holds 2 of the 4 methods over the threshold \u2014 including the worst \u2014 and 14 of the 23 points over it (61%), 2.3\u00D7 the next-largest file (vit_pytorch/vat.py at 6). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"b533df014304a439adb4217c26d8a99317b203f364d6253d3f0eb492f425f430"}},{"ruleId":"D1","level":"warning","message":{"text":"VAT.forward (cyclomatic 21): VAT.forward has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vat.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db25f5152973a16f83b7df9e2d2dd477f81a0a36973d3e58a2946fa4d0a0b4a"}},{"ruleId":"D1","level":"warning","message":{"text":"SigLIPVAT.forward (cyclomatic 18): SigLIPVAT.forward has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vat_siglip.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"245ec5542cbe2f70250a67426aed73f404ae3b44441eea7af85ad582e43af621"}},{"ruleId":"D1","level":"warning","message":{"text":"VAAT.__init__ (cyclomatic 16): VAAT.__init__ has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: vit_pytorch/vaat.py holds 2 of the 4 methods over the threshold \u2014 including the worst \u2014 and 14 of the 23 points over it (61%), 2.3\u00D7 the next-largest file (vit_pytorch/vat.py at 6). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"7675eb8a10a489c6572a3e50ac7988fd6bf60d4cfc9351005d73d989d135f85f"}},{"ruleId":"D2","level":"warning","message":{"text":"VAAT.forward (cognitive 31): VAAT.forward has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 7, ternaries 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This file is where this pass\u0027s cognitive complexity CONCENTRATES: vit_pytorch/vaat.py holds 2 of the 6 methods over the threshold \u2014 including the worst \u2014 and 18 of the 39 points over it (46%), 2\u00D7 the next-largest file (vit_pytorch/vat.py at 9). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7eba98220e60867e5b31215815e957a4c794bd5ea79c5113b8e6a501387222"}},{"ruleId":"D2","level":"warning","message":{"text":"VAT.forward (cognitive 24): VAT.forward has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vat.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b97e9d5f006f8f8c22142e90c89cb228cb35d3acf796b76a34e5ae038550fb0"}},{"ruleId":"D2","level":"warning","message":{"text":"SigLIPVAT.forward (cognitive 21): SigLIPVAT.forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vat_siglip.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af2787866fc9a3c97d0a5fc2fcf710c8fd59908af78b7b3fd0241696e80853a"}},{"ruleId":"D2","level":"warning","message":{"text":"WWT.forward (cognitive 20): WWT.forward has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (5 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/wwt.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c45a060db2898af6b097fe8f8d3fcb88323bc91692f33993bea84c67a6da65"}},{"ruleId":"D2","level":"warning","message":{"text":"VAAT.__init__ (cognitive 17): VAAT.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (7 pts), if/else 5, boolean chains 4, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This file is where this pass\u0027s cognitive complexity CONCENTRATES: vit_pytorch/vaat.py holds 2 of the 6 methods over the threshold \u2014 including the worst \u2014 and 18 of the 39 points over it (46%), 2\u00D7 the next-largest file (vit_pytorch/vat.py at 9). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af19a6b8f72f83c9c1cf658da072539ecc4f3b1243ef2d074c72c8b168996ef"}},{"ruleId":"D2","level":"warning","message":{"text":"LoopedViT.forward (cognitive 16): LoopedViT.forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 4, ternaries 3 (4 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/looped_vit.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b46240dfd35c6e08bcb25e1e72c6dc8d1510a427bdb92412486d0b8c19efbc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 68 shared lines): vit_pytorch/vaat.py:560-745 | vit_pytorch/vat.py:370-511 | vit_pytorch/vat_siglip.py:354-480 \u2014 These 3 members are variants of one another: a block of 68 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84c508843d25dbe592b9d80c3fc7025295a5809aea5bac76106fc74a3af2d5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 5 shared lines): vit_pytorch/mp3.py:22-32 | vit_pytorch/simple_flash_attn_vit.py:21-31 | vit_pytorch/simple_vit_with_patch_dropout.py:13-23 \u2014 These 3 members are variants of one another: a block of 5 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/mp3.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b20999fc0a7565b3e86eca5ac2d85669216836e7931978c10933c6da9e02980"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): vit_pytorch/dino.py:202-249 | vit_pytorch/es_vit.py:241-291 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/dino.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8c612ce751ec397ebda0b3628e9691444254d23210c083349926de17611bc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): vit_pytorch/simple_flash_attn_vit_3d.py:22-42 | vit_pytorch/simple_vit_3d.py:14-34 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"vit_pytorch/simple_flash_attn_vit_3d.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc4b91a9d6ecd980eaafdb3772498193ccc70ff37fdb6a9436120e5881e02ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): vit_pytorch/simple_flash_attn_vit_3d.py:138-158 | vit_pytorch/simple_vit_3d.py:95-115 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"vit_pytorch/simple_flash_attn_vit_3d.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"085c5ef1d37d341b0de672d4b2a4ba2fce455a11af8268fc1f7d65dda7770219"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): vit_pytorch/simple_vit_attn_residual.py:30-38 | vit_pytorch/simple_vit_with_relative_proj_pos_bias.py:23-31 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_vit_attn_residual.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"809989e2e962b830758ededb4cab98d45a9051f035884ef69121db2be52f6747"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): vit_pytorch/jumbo_vit.py:20-30 | vit_pytorch/simple_uvit.py:20-28 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/jumbo_vit.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1025b8e6c80da93730ee6d2127bce9d3f23db4d9f1c9bd947790527c8f37b869"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (25 members, 50\u002B identical tokens): vit_pytorch/ats_vit.py:115-123 | vit_pytorch/cait.py:49-57 | vit_pytorch/cross_vit.py:20-28 | vit_pytorch/deepvit.py:10-18 | vit_pytorch/jet_vit.py:35-43 | vit_pytorch/learnable_memory_vit.py:32-40 | vit_pytorch/looped_vit.py:94-102 | vit_pytorch/mp3.py:38-46 | vit_pytorch/parallel_vit.py:24-32 | vit_pytorch/pit.py:22-30 | vit_pytorch/vaat.py:81-89 | vit_pytorch/vat.py:53-61 | vit_pytorch/vit.py:17-25 | vit_pytorch/vit_1d.py:11-19 | vit_pytorch/vit_3d.py:16-24 | vit_pytorch/vit_detpool.py:34-42 | vit_pytorch/vit_for_small_dataset.py:18-26 | vit_pytorch/vit_nd.py:30-38 | vit_pytorch/vit_nd_pope.py:116-124 | vit_pytorch/vit_nd_rotary.py:104-112 | vit_pytorch/vit_with_patch_dropout.py:35-43 | vit_pytorch/vit_with_patch_merger.py:37-45 | vit_pytorch/vivit.py:27-35 | vit_pytorch/vivit_with_moss.py:51-59 | vit_pytorch/xcit.py:60-68 \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":"vit_pytorch/ats_vit.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc38eaf231f2e227b43b180fb7cf0c983222449167eeb3408852af57a3f95afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): vit_pytorch/jumbo_vit.py:45-54 | vit_pytorch/simple_uvit.py:42-51 | vit_pytorch/simple_vit.py:39-48 | vit_pytorch/simple_vit_1d.py:37-46 | vit_pytorch/simple_vit_3d.py:52-61 | vit_pytorch/simple_vit_orthog_residual_update.py:47-56 | vit_pytorch/simple_vit_with_fft.py:40-49 | vit_pytorch/simple_vit_with_hyper_connections.py:102-111 | vit_pytorch/simple_vit_with_patch_dropout.py:62-71 | vit_pytorch/simple_vit_with_register_tokens.py:44-53 | vit_pytorch/simple_vit_with_value_residual.py:42-57 \u2014 These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/jumbo_vit.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a47ee1e62dbcfd04bceeaa975411311a6e3f9078f3f09b8ffcd1e0efc156e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): vit_pytorch/ats_vit.py:245-262 | vit_pytorch/cross_vit.py:193-200 | vit_pytorch/deepvit.py:117-130 | vit_pytorch/efficient.py:38-49 | vit_pytorch/local_vit.py:140-150 | vit_pytorch/mpp.py:117-175 | vit_pytorch/parallel_vit.py:122-135 | vit_pytorch/vit_3d.py:113-126 | vit_pytorch/vit_for_small_dataset.py:127-140 | vit_pytorch/vit_with_decorr.py:252-279 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/ats_vit.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f4f240d82b39ae961844f12cb8a0077f401333ea29c1609928e7854b1fc179"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): vit_pytorch/jumbo_vit.py:87-134 | vit_pytorch/simple_uvit.py:108-138 | vit_pytorch/simple_vit.py:82-108 | vit_pytorch/simple_vit_attn_residual.py:171-195 | vit_pytorch/simple_vit_orthog_residual_update.py:148-174 | vit_pytorch/simple_vit_with_hyper_connections.py:168-196 | vit_pytorch/simple_vit_with_qk_norm.py:103-129 | vit_pytorch/simple_vit_with_register_tokens.py:87-115 | vit_pytorch/simple_vit_with_specialized_cls.py:142-172 | vit_pytorch/simple_vit_with_value_residual.py:104-130 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/jumbo_vit.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a70364c4f23787c90fa49c7beb34aa02569ccfa83cefed0094e27b7513388c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): vit_pytorch/simple_vit.py:13-21 | vit_pytorch/simple_vit_orthog_residual_update.py:21-29 | vit_pytorch/simple_vit_with_fft.py:14-22 | vit_pytorch/simple_vit_with_hyper_connections.py:21-29 | vit_pytorch/simple_vit_with_qk_norm.py:14-22 | vit_pytorch/simple_vit_with_register_tokens.py:18-26 | vit_pytorch/simple_vit_with_specialized_cls.py:24-32 | vit_pytorch/simple_vit_with_value_residual.py:20-28 \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":"vit_pytorch/simple_vit.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a594ec0ff9b1c7838c3c56aebf2ffd85e7b7e5be2e4ae97200a6b88000d8e18"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): vit_pytorch/max_vit.py:162-206 | vit_pytorch/max_vit_with_registers.py:162-198 | vit_pytorch/regionvit.py:85-112 | vit_pytorch/xcit.py:129-148 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/max_vit.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7418357a8a776fc3cf59f08e8b8e5145c78ae36f341d886740327e1742af00"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): vit_pytorch/simple_vit.py:111-120 | vit_pytorch/simple_vit_orthog_residual_update.py:177-186 | vit_pytorch/simple_vit_with_qk_norm.py:132-141 | vit_pytorch/simple_vit_with_value_residual.py:133-142 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_vit.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c170c412eb5760e76f5041c945da9ab44399dea930d2b94cf9f605e90319b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201344 lines \u00D7 3): vit_pytorch/vaat.py:502-545 | vit_pytorch/vat.py:315-357 | vit_pytorch/vat_siglip.py:232-271 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/vaat.py:496\u0060 calls \u0060Parameter\u0060, \u0060randn\u0060, \u0060exists\u0060 and \u0060vit_pytorch/vat.py:307\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c008cf354770e78e27d7a5230fe82e281ea5210d2892cdfd66fe8b453dd14b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): vit_pytorch/na_vit_nested_tensor.py:71-111 | vit_pytorch/na_vit_nested_tensor_3d.py:72-112 \u2014 before extracting anything, compare \u0060vit_pytorch/na_vit_nested_tensor.py\u0060 and \u0060vit_pytorch/na_vit_nested_tensor_3d.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 157 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":"vit_pytorch/na_vit_nested_tensor.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"864a15cbfc06d45fc7e6beec5a8f6024040197858cb80ab37cc279108a4436f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201339 lines \u00D7 2): vit_pytorch/vat.py:381-419 | vit_pytorch/vat_siglip.py:362-397 \u2014 before extracting anything, compare \u0060vit_pytorch/vat.py\u0060 and \u0060vit_pytorch/vat_siglip.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/vat.py:381\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vat.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb66637ccf39de7209d216cbfd2b49ade70a48beac0bbb2b95155ba8118d63e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): vit_pytorch/vit_nd_pope.py:301-338 | vit_pytorch/vit_nd_rotary.py:274-311 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_nd_pope.py\u0060 and \u0060vit_pytorch/vit_nd_rotary.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 150 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":"vit_pytorch/vit_nd_pope.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"611a0cb0e354057d592834708c4c9dca6276f66372cd217d4aead1d06683c7bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): vit_pytorch/vaat.py:666-696 | vit_pytorch/vat.py:434-464 | vit_pytorch/vat_siglip.py:408-438 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/vaat.py:666\u0060 calls \u0060rearrange\u0060, \u0060b\u0060 and \u0060vit_pytorch/vat.py:434\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22fe026d254e5755fd5be829e0bf56f523883a4902fc9c3a84daf6b3a4133b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201330 lines \u00D7 3): vit_pytorch/vaat.py:716-745 | vit_pytorch/vat.py:482-511 | vit_pytorch/vat_siglip.py:454-480 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"37258d249392f355492f230b69067d375c7eefba576ecbd8ee3297cf017dc02b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): vit_pytorch/na_vit_nested_tensor.py:226-253 | vit_pytorch/na_vit_nested_tensor_3d.py:240-268 \u2014 before extracting anything, compare \u0060vit_pytorch/na_vit_nested_tensor.py\u0060 and \u0060vit_pytorch/na_vit_nested_tensor_3d.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 157 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":"vit_pytorch/na_vit_nested_tensor.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"65de8bc7e5befbee5fc6757f212e34f52c76885df9e2bde586803f2294fbb3f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): vit_pytorch/vaat.py:104-132 | vit_pytorch/vat.py:76-104 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/vaat.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"58645b1094f67a71d70a9b5e62abb8ed0f2b0b70cc0ce71aa19d9ce0b10c7333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): vit_pytorch/vaat.py:136-163 | vit_pytorch/vat.py:108-134 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/vaat.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa595cebc1da05c0072429bd1cf9592c8819c013bf8fe89a0153baf0ed9f8e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): vit_pytorch/vit_nd_pope.py:216-242 | vit_pytorch/vit_nd_rotary.py:191-217 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_nd_pope.py\u0060 and \u0060vit_pytorch/vit_nd_rotary.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/vit_nd_pope.py:216\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":"vit_pytorch/vit_nd_pope.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb72817a4f6ea67a7bec039c3613baf5d0b4c8cd5ee6c1f4ca0e39bd22f2bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): vit_pytorch/vaat.py:389-414 | vit_pytorch/vat.py:229-253 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/vaat.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"18149ddf38d05420adfe2333f134266cfdec4b41d2a0e7cd2062f0ed8a5b0926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201326 lines \u00D7 2): vit_pytorch/vit.py:89-109 | vit_pytorch/vit_with_keel_post_ln.py:141-166 \u2014 before extracting anything, compare \u0060vit_pytorch/vit.py\u0060 and \u0060vit_pytorch/vit_with_keel_post_ln.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/vit.py:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vit.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb8ae05caf84f7b9a21ea5a811dd1f63e10008422d1e4b35a243b3871944c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): vit_pytorch/na_vit_nested_tensor.py:278-301 | vit_pytorch/na_vit_nested_tensor_3d.py:300-323 \u2014 before extracting anything, compare \u0060vit_pytorch/na_vit_nested_tensor.py\u0060 and \u0060vit_pytorch/na_vit_nested_tensor_3d.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 157 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":"vit_pytorch/na_vit_nested_tensor.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cf7f2fb5354ca7733f055dba5072932ed4c1790ab3029e17222d5fa7f4781c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): vit_pytorch/dino.py:207-229 | vit_pytorch/es_vit.py:246-268 | vit_pytorch/lejepa.py:250-272 \u2014 before extracting anything, compare \u0060vit_pytorch/dino.py\u0060 and \u0060vit_pytorch/es_vit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/dino.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abc14fa08e40db84b82264516da6cb544bf2bd69e453cbfc7e95cef079c36a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): vit_pytorch/cct.py:272-292 | vit_pytorch/cct_3d.py:301-321 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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":"vit_pytorch/cct.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecc2c807576031d3b382f9f3b59e7537d3840d15449a041aa41268277f2ab3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): vit_pytorch/na_vit_nested_tensor.py:45-64 | vit_pytorch/na_vit_nested_tensor_3d.py:45-64 \u2014 before extracting anything, compare \u0060vit_pytorch/na_vit_nested_tensor.py\u0060 and \u0060vit_pytorch/na_vit_nested_tensor_3d.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 157 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":"vit_pytorch/na_vit_nested_tensor.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf0e156857a0d1320fc586ef02f5c34efdb8ab41c792f9bce4f69cc795984da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): vit_pytorch/vaat.py:368-386 | vit_pytorch/vat.py:208-226 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/vaat.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c028afbbe1e1c5ca0508ccbf95554f413dc32c1f3af74a416914fe12dc2b738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): vit_pytorch/dino.py:94-111 | vit_pytorch/es_vit.py:120-137 | vit_pytorch/lejepa.py:122-139 \u2014 before extracting anything, compare \u0060vit_pytorch/dino.py\u0060 and \u0060vit_pytorch/es_vit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/dino.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"da63dc4cd7894ed53c4332ac57d312f5b66f76e6a6e0869383ff13d688a09aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): vit_pytorch/simple_flash_attn_vit.py:67-84 | vit_pytorch/simple_flash_attn_vit_3d.py:62-79 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_flash_attn_vit.py\u0060 and \u0060vit_pytorch/simple_flash_attn_vit_3d.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_flash_attn_vit.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaea8deebcd397c710b4b9737278a56c2627263ed9d4b691530785680fe7abbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): vit_pytorch/jet_vit.py:102-116 | vit_pytorch/max_vit.py:138-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/jet_vit.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf59bda152f640e0969325fa11563edb117a12bdc28ac40cc28bee918d56d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): vit_pytorch/na_vit_nested_tensor.py:186-202 | vit_pytorch/na_vit_nested_tensor_3d.py:200-216 \u2014 before extracting anything, compare \u0060vit_pytorch/na_vit_nested_tensor.py\u0060 and \u0060vit_pytorch/na_vit_nested_tensor_3d.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 157 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":"vit_pytorch/na_vit_nested_tensor.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"66da979f432c097a498a2737c0ddaeb8eb1b8c714f1a88ed41b308858edd1b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): vit_pytorch/vaat.py:560-576 | vit_pytorch/vat.py:370-386 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/vaat.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43270b79661e1667911812cc56dda4cb3c61617759025339c57f7856e9aabc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): vit_pytorch/simple_vit_with_hyper_connections.py:174-189 | vit_pytorch/simple_vit_with_register_tokens.py:93-108 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_vit_with_hyper_connections.py\u0060 and \u0060vit_pytorch/simple_vit_with_register_tokens.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_vit_with_hyper_connections.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c528be045001b491378fbf59bd17b064e087b4728c5e69790a5434b40779fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): vit_pytorch/vaat.py:448-463 | vit_pytorch/vat.py:284-297 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/vaat.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9b38fcd6419b4c18347cb3e4597ad10ef9b8476658731c9574605e711b7af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): vit_pytorch/jet_vit.py:96-110 | vit_pytorch/max_vit.py:132-146 | vit_pytorch/max_vit_with_registers.py:129-143 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/jet_vit.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2983dfd98f443000ad7ae56cdb43b16235b3febd6b63f455ea0c6136a6c3563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): vit_pytorch/cct.py:97-111 | vit_pytorch/cct_3d.py:97-111 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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":"vit_pytorch/cct.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a2b02f5c3e32c8967698e22883b12ed6e40181604c8db97b838febe6f5de29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): vit_pytorch/cct.py:121-135 | vit_pytorch/cct_3d.py:121-135 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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":"vit_pytorch/cct.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7aef39755463d89d74de858d33e5c1bc24241ba0cafb0cbd0947596acd5535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): vit_pytorch/levjepa.py:61-75 | vit_pytorch/levjepa_nd.py:34-48 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 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":"vit_pytorch/levjepa.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"29787bf05c864d56539d44880c308ea32738745d773a2944d5d84bfed051f7e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): vit_pytorch/max_vit.py:103-117 | vit_pytorch/max_vit_with_registers.py:98-112 \u2014 before extracting anything, compare \u0060vit_pytorch/max_vit.py\u0060 and \u0060vit_pytorch/max_vit_with_registers.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/max_vit.py:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"vit_pytorch/max_vit.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6db88b093669368f7d18175987057ea5de676f99fe4e7a6dec6a95a847f177b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): vit_pytorch/vit_nd_pope.py:65-79 | vit_pytorch/vit_nd_rotary.py:60-74 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_nd_pope.py\u0060 and \u0060vit_pytorch/vit_nd_rotary.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 150 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":"vit_pytorch/vit_nd_pope.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19013a07b0493341e8957256b1a1074f97d873045606524eb0b6175518ebe24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): vit_pytorch/vit_nd_pope.py:246-260 | vit_pytorch/vit_nd_rotary.py:221-235 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_nd_pope.py\u0060 and \u0060vit_pytorch/vit_nd_rotary.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 150 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":"vit_pytorch/vit_nd_pope.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bacb1804431042ee6a86f40c0305da059e9ecf1067994375991650dc03519b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): vit_pytorch/jumbo_vit.py:93-106 | vit_pytorch/simple_vit.py:88-101 | vit_pytorch/simple_vit_attn_residual.py:177-190 | vit_pytorch/simple_vit_orthog_residual_update.py:154-167 | vit_pytorch/simple_vit_with_qk_norm.py:109-122 | vit_pytorch/simple_vit_with_specialized_cls.py:148-161 | vit_pytorch/simple_vit_with_value_residual.py:110-123 \u2014 before extracting anything, compare \u0060vit_pytorch/jumbo_vit.py\u0060 and \u0060vit_pytorch/simple_vit.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/simple_vit_with_specialized_cls.py:163\u0060 calls \u0060Parameter\u0060, \u0060randn\u0060, \u0060default\u0060 and \u0060vit_pytorch/simple_vit_orthog_residual_update.py:169\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/jumbo_vit.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1133f0765109c66f7523b0df9c559adb3b5cb4e1c70885d3650b6f8f566fa3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): vit_pytorch/simple_vit.py:82-95 | vit_pytorch/simple_vit_orthog_residual_update.py:148-161 | vit_pytorch/simple_vit_with_hyper_connections.py:168-181 | vit_pytorch/simple_vit_with_qk_norm.py:103-116 | vit_pytorch/simple_vit_with_register_tokens.py:87-100 | vit_pytorch/simple_vit_with_specialized_cls.py:142-155 | vit_pytorch/simple_vit_with_value_residual.py:104-117 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_vit.py\u0060 and \u0060vit_pytorch/simple_vit_orthog_residual_update.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/simple_vit_with_hyper_connections.py:183\u0060 calls \u0060Parameter\u0060, \u0060randn\u0060 and \u0060vit_pytorch/simple_vit.py:97\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":"vit_pytorch/simple_vit.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8789e319e4b6d60f4ec713963e122b7eb1877d376bc0730ba8f9d8709691bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): vit_pytorch/jumbo_vit.py:87-100 | vit_pytorch/simple_uvit.py:108-121 | vit_pytorch/simple_vit_attn_residual.py:171-184 \u2014 before extracting anything, compare \u0060vit_pytorch/jumbo_vit.py\u0060 and \u0060vit_pytorch/simple_uvit.py\u0060 as WHOLE FILES: this scan already matched 5 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":"vit_pytorch/jumbo_vit.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d254c2f89e87b99c3dd62ddcdf7300ba59c2bb88a35ded99058615e178a045e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): vit_pytorch/cait.py:141-153 | vit_pytorch/xcit.py:233-246 \u2014 before extracting anything, compare \u0060vit_pytorch/cait.py\u0060 and \u0060vit_pytorch/xcit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/cait.py:141\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":"vit_pytorch/cait.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12cc723e87552cdb46f7ce92690d2211483d9154702e20912f0845396e95a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): vit_pytorch/cct.py:223-236 | vit_pytorch/cct_3d.py:244-257 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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":"vit_pytorch/cct.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed9aae27d989240826b9bd7f61968c0e7dccaa5235d82646188e1a34c3aa2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): vit_pytorch/cct.py:251-264 | vit_pytorch/cct_3d.py:270-283 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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":"vit_pytorch/cct.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"19614da21ec39d7c673b38bba714c3a9b475223251e235bbf4d09e99d6ed7a2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): vit_pytorch/cross_vit.py:37-49 | vit_pytorch/learnable_memory_vit.py:47-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/cross_vit.py:37\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":"vit_pytorch/cross_vit.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"759b07c94efc60f01dd66a5441d49bf295537156779ed45127c412953029ead5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): vit_pytorch/dino.py:236-249 | vit_pytorch/es_vit.py:278-291 \u2014 before extracting anything, compare \u0060vit_pytorch/dino.py\u0060 and \u0060vit_pytorch/es_vit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/es_vit.py:275\u0060 calls \u0060register_buffer\u0060, \u0060zeros\u0060 and \u0060vit_pytorch/dino.py:234\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/dino.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7742765917d4c0d849085837d42c6faa62e3bce52b0196ed233a272ad064eb8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): vit_pytorch/mp3.py:120-133 | vit_pytorch/simple_flash_attn_vit.py:150-163 \u2014 before extracting anything, compare \u0060vit_pytorch/mp3.py\u0060 and \u0060vit_pytorch/simple_flash_attn_vit.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 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":"vit_pytorch/mp3.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"586325082ef86d6e37714926cb5f8a954ea6bcb0b1a99725fc683f791960aabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): vit_pytorch/simple_flash_attn_vit_3d.py:22-35 | vit_pytorch/simple_vit_3d.py:14-27 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_flash_attn_vit_3d.py\u0060 and \u0060vit_pytorch/simple_vit_3d.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 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":"vit_pytorch/simple_flash_attn_vit_3d.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bc7b70fa176e2d012ef50d7bde0c01b4fbfd135694e77adfaaaa6ba71f15e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): vit_pytorch/simple_vit_orthog_residual_update.py:161-174 | vit_pytorch/simple_vit_with_hyper_connections.py:185-196 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_vit_orthog_residual_update.py\u0060 and \u0060vit_pytorch/simple_vit_with_hyper_connections.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/simple_vit_orthog_residual_update.py:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/simple_vit_with_hyper_connections.py:183\u0060 calls \u0060Parameter\u0060, \u0060randn\u0060, \u0060posemb_sincos_2d\u0060 and \u0060vit_pytorch/simple_vit_orthog_residual_update.py:161\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":"vit_pytorch/simple_vit_orthog_residual_update.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a9d1a66677e1ea03ea541be45172203ab4aad24e06fecd27fd5476289dd7c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): vit_pytorch/ats_vit.py:218-230 | vit_pytorch/simple_flash_attn_vit.py:142-153 | vit_pytorch/simple_vit_with_patch_dropout.py:106-118 | vit_pytorch/vit_with_patch_merger.py:110-122 \u2014 before extracting anything, compare \u0060vit_pytorch/ats_vit.py\u0060 and \u0060vit_pytorch/vit_with_patch_merger.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/ats_vit.py:218\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/ats_vit.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec61ed9748251b3af07e7b5a39daaec012cccd671647c529cbbbf2d54182bd10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): vit_pytorch/vaat.py:480-492 | vit_pytorch/vat.py:295-307 | vit_pytorch/vat_siglip.py:215-224 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/vaat.py:498\u0060 calls \u0060Parameter\u0060, \u0060randn\u0060, \u0060exists\u0060 and \u0060vit_pytorch/vat.py:315\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a606f5a558e09cc6e6fb64e57b841cc1d855bf992ad428280e8b2b292dee325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): vit_pytorch/vit_nd.py:134-146 | vit_pytorch/vit_nd_pope.py:240-252 | vit_pytorch/vit_nd_rotary.py:215-227 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_nd_pope.py\u0060 and \u0060vit_pytorch/vit_nd_rotary.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 150 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":"vit_pytorch/vit_nd.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e09643fde26cc4445ea30965595e67aff24f3d5f4b5ce316012c3e66612826d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): vit_pytorch/cait.py:15-27 | vit_pytorch/xcit.py:26-38 \u2014 before extracting anything, compare \u0060vit_pytorch/cait.py\u0060 and \u0060vit_pytorch/xcit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cait.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"12257299298a0d3cd1a74a108da4f679ef40cdd1db9bf5fe7d3147e212ef219e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): vit_pytorch/cct.py:329-341 | vit_pytorch/cct_3d.py:359-373 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/cct.py:329\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cct.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12513b99fb807c5dbb97f85a57aa6b4a91d4dbb8ebd5722520bf7ee4eb6a7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): vit_pytorch/dino.py:160-172 | vit_pytorch/es_vit.py:193-205 \u2014 before extracting anything, compare \u0060vit_pytorch/dino.py\u0060 and \u0060vit_pytorch/es_vit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"vit_pytorch/dino.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cfbfebc88522dc56a67256fd54d9b4bc7263498c2651ee8a87d7484189deda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): vit_pytorch/mae.py:19-31 | vit_pytorch/simmim.py:13-25 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/mae.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1cefc5009ec7c7cbb6221faab2fb0071c4477794a60018ca7715942ed4b9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): vit_pytorch/scalable_vit.py:282-293 | vit_pytorch/sep_vit.py:269-281 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/scalable_vit.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"557ab65afa0ed8ee57d9af2450973f9ddde6397176caba897630ba14695fe0a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): vit_pytorch/simple_uvit.py:146-157 | vit_pytorch/simple_vit_with_hyper_connections.py:204-215 | vit_pytorch/simple_vit_with_register_tokens.py:123-134 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_uvit.py\u0060 and \u0060vit_pytorch/simple_vit_with_hyper_connections.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_uvit.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48fc7a80601435c3e33f4e334f77a0d318552273982d76473adde2b52143b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): vit_pytorch/simple_vit.py:97-108 | vit_pytorch/simple_vit_with_register_tokens.py:104-115 | vit_pytorch/simple_vit_with_value_residual.py:119-130 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_vit.py\u0060 and \u0060vit_pytorch/simple_vit_with_register_tokens.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/simple_vit_with_register_tokens.py:102\u0060 calls \u0060Parameter\u0060, \u0060randn\u0060 and \u0060vit_pytorch/simple_vit.py:95\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":"vit_pytorch/simple_vit.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2172ad644e4bc934fe191679994daef31ff6e41f5f34a24e6c833778369b981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): vit_pytorch/dino.py:20-31 | vit_pytorch/es_vit.py:21-32 \u2014 before extracting anything, compare \u0060vit_pytorch/dino.py\u0060 and \u0060vit_pytorch/es_vit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/dino.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c91c2ced23a3daed605b027f378ec41582b620dfb2abe7330b4f8a504ba898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): vit_pytorch/learnable_memory_vit.py:77-87 | vit_pytorch/vivit.py:89-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/learnable_memory_vit.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"865231a1fd48a020bc45be0fc4a7652870c8c4ecef6457ec50fa828ca571d9ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): vit_pytorch/simple_flash_attn_vit_3d.py:142-153 | vit_pytorch/simple_vit_3d.py:99-110 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_flash_attn_vit_3d.py\u0060 and \u0060vit_pytorch/simple_vit_3d.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/simple_flash_attn_vit_3d.py:142\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":"vit_pytorch/simple_flash_attn_vit_3d.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d8da8281fb42429b4ee811a67a1e7d82baec55eac094df5d7704ee9367db50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): vit_pytorch/vit.py:119-130 | vit_pytorch/vit_with_keel_post_ln.py:179-190 \u2014 before extracting anything, compare \u0060vit_pytorch/vit.py\u0060 and \u0060vit_pytorch/vit_with_keel_post_ln.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 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":"vit_pytorch/vit.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3f66e9ab0d550f556d3a9b64978b28d9d9d23093ddbeb1244635d4ba0a59cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): vit_pytorch/deepvit.py:104-114 | vit_pytorch/vit_3d.py:100-110 | vit_pytorch/vit_for_small_dataset.py:114-124 | vit_pytorch/vit_with_patch_dropout.py:117-127 \u2014 before extracting anything, compare \u0060vit_pytorch/deepvit.py\u0060 and \u0060vit_pytorch/vit_3d.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 59 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":"vit_pytorch/deepvit.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1556261d63d2a88193c460b81046f5043f7b0d19a48ad39a584b5c61af182aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): vit_pytorch/cait.py:63-73 | vit_pytorch/xcit.py:74-84 \u2014 before extracting anything, compare \u0060vit_pytorch/cait.py\u0060 and \u0060vit_pytorch/xcit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/cait.py:75\u0060 calls \u0060Parameter\u0060, \u0060randn\u0060 and \u0060vit_pytorch/xcit.py:86\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cait.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"befcafd08ec844e2ce0707365e747c34ef9cf91d0080fc99d4310d26a89eff46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): vit_pytorch/cct.py:61-71 | vit_pytorch/cct_3d.py:61-71 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/cct.py:61\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":"vit_pytorch/cct.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c74a32ca0f1d3c5b1e3bc722a4c5b4d6304888be8c0c9578c90b2b3d1bc03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): vit_pytorch/max_vit.py:231-241 | vit_pytorch/max_vit_with_registers.py:225-235 \u2014 before extracting anything, compare \u0060vit_pytorch/max_vit.py\u0060 and \u0060vit_pytorch/max_vit_with_registers.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/max_vit.py:231\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/max_vit.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"56afa364eb01265c60e6a15aed4bdecaf486cd24028eb1eb115e357f47ddd431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): vit_pytorch/mp3.py:136-146 | vit_pytorch/simple_flash_attn_vit.py:166-176 \u2014 before extracting anything, compare \u0060vit_pytorch/mp3.py\u0060 and \u0060vit_pytorch/simple_flash_attn_vit.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 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":"vit_pytorch/mp3.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eb1c43c5fce3b6c762e77265b018a8148731615fdfb936962c986918481881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): vit_pytorch/simple_flash_attn_vit_3d.py:161-171 | vit_pytorch/simple_vit_3d.py:118-128 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_flash_attn_vit_3d.py\u0060 and \u0060vit_pytorch/simple_vit_3d.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 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":"vit_pytorch/simple_flash_attn_vit_3d.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b996f9299c746170dfed90e00ed5dff6d7b5160692a44caeaa51f9fd720b092"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): vit_pytorch/simple_vit_with_patch_dropout.py:34-44 | vit_pytorch/vit_with_patch_dropout.py:21-31 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_vit_with_patch_dropout.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efed45ba8e34fb98fa31946111ae031efb58315bf2e8cf7e8f9f19413df7b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): vit_pytorch/vaat.py:355-365 | vit_pytorch/vat.py:195-205 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/vaat.py:355\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":"vit_pytorch/vaat.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0581dd2843583926c1972f94b82c02c89a532ea925fcf00d3057d513ba005ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): vit_pytorch/vivit.py:193-203 | vit_pytorch/vivit_with_moss.py:320-330 \u2014 before extracting anything, compare \u0060vit_pytorch/vivit.py\u0060 and \u0060vit_pytorch/vivit_with_moss.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vivit.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"1756d811b00b1370a97e35717d1dd157b80f4cbcf3500ea2b1a60c5e5f892efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 11): vit_pytorch/jet_vit.py:194-203 | vit_pytorch/parallel_vit.py:39-47 | vit_pytorch/pit.py:37-45 | vit_pytorch/vit.py:33-42 | vit_pytorch/vit_1d.py:26-34 | vit_pytorch/vit_3d.py:31-39 | vit_pytorch/vit_detpool.py:50-59 | vit_pytorch/vit_with_patch_dropout.py:50-58 | vit_pytorch/vit_with_patch_merger.py:52-60 | vit_pytorch/vivit.py:44-52 | vit_pytorch/vivit_with_moss.py:69-77 \u2014 before extracting anything, compare \u0060vit_pytorch/jet_vit.py\u0060 and \u0060vit_pytorch/parallel_vit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 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":"vit_pytorch/jet_vit.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb412ac9753af854dd0f44b62c27992656501d20519b6d67e09152ac7f0082a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): vit_pytorch/jumbo_vit.py:45-54 | vit_pytorch/simple_uvit.py:42-51 | vit_pytorch/simple_vit.py:39-48 | vit_pytorch/simple_vit_1d.py:37-46 | vit_pytorch/simple_vit_3d.py:52-61 | vit_pytorch/simple_vit_orthog_residual_update.py:47-56 | vit_pytorch/simple_vit_with_fft.py:40-49 | vit_pytorch/simple_vit_with_hyper_connections.py:102-111 | vit_pytorch/simple_vit_with_patch_dropout.py:62-71 | vit_pytorch/simple_vit_with_register_tokens.py:44-53 | vit_pytorch/simple_vit_with_value_residual.py:42-51 \u2014 before extracting anything, compare \u0060vit_pytorch/jumbo_vit.py\u0060 and \u0060vit_pytorch/simple_uvit.py\u0060 as WHOLE FILES: this scan already matched 5 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":"vit_pytorch/jumbo_vit.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"72dad3349e3c066f487843779c0177af70241e95c4fcd9d42a823147e3b9453f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): vit_pytorch/deepvit.py:121-130 | vit_pytorch/parallel_vit.py:126-135 | vit_pytorch/vit_3d.py:117-126 | vit_pytorch/vit_for_small_dataset.py:131-140 \u2014 before extracting anything, compare \u0060vit_pytorch/deepvit.py\u0060 and \u0060vit_pytorch/parallel_vit.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"vit_pytorch/deepvit.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"278f1d461b5d9d223af1fe12ac0ebfdea8e1de4ebf26870a0648575b25ac319d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): vit_pytorch/simple_vit.py:95-106 | vit_pytorch/simple_vit_with_qk_norm.py:116-127 | vit_pytorch/simple_vit_with_register_tokens.py:104-113 | vit_pytorch/simple_vit_with_value_residual.py:117-128 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_vit.py\u0060 and \u0060vit_pytorch/simple_vit_with_qk_norm.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/simple_vit.py:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/simple_vit_with_register_tokens.py:102\u0060 calls \u0060Parameter\u0060, \u0060randn\u0060, \u0060posemb_sincos_2d\u0060 and \u0060vit_pytorch/simple_vit.py:95\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":"vit_pytorch/simple_vit.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"502a5802b4a566fb585559cd3b994ba60e285a03966c326ad2713065e16128e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): vit_pytorch/simple_vit.py:111-120 | vit_pytorch/simple_vit_orthog_residual_update.py:177-186 | vit_pytorch/simple_vit_with_qk_norm.py:132-141 | vit_pytorch/simple_vit_with_value_residual.py:133-142 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_vit.py\u0060 and \u0060vit_pytorch/simple_vit_orthog_residual_update.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"vit_pytorch/simple_vit.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0162fa610b9988d4cd11852582ec67a871b07313653f3aa6696fb56beea0ee34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): vit_pytorch/vaat.py:597-606 | vit_pytorch/vat.py:392-401 | vit_pytorch/vat_siglip.py:370-379 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/vaat.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edb9beb09244375892d361200282632a8b43243c0bbb4a0bb080bf110f976b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): vit_pytorch/cross_vit.py:176-185 | vit_pytorch/local_vit.py:116-124 \u2014 before extracting anything, compare \u0060vit_pytorch/cross_vit.py\u0060 and \u0060vit_pytorch/local_vit.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/cross_vit.py:176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cross_vit.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed76d3ae96ec9fb192b531f0e488cf3c081872cb513847d36da02152bac58ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): vit_pytorch/levjepa.py:166-173 | vit_pytorch/levjepa_nd.py:144-153 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/levjepa_nd.py:144\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"vit_pytorch/levjepa.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f2072a8d2de67489b9436e91f4636df79407ecb20be781c7f595bb0d09833e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): vit_pytorch/scalable_vit.py:110-119 | vit_pytorch/scalable_vit.py:175-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/scalable_vit.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b8b21bc9edd06547b797cc3e60b30103d01e894079b8bdc13841710acb06e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): vit_pytorch/simple_flash_attn_vit.py:102-111 | vit_pytorch/simple_flash_attn_vit_3d.py:97-106 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_flash_attn_vit.py\u0060 and \u0060vit_pytorch/simple_flash_attn_vit_3d.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 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":"vit_pytorch/simple_flash_attn_vit.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af0060ceb977c5937bfa19319d601389b0973377cb7902282c63199146d36a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): vit_pytorch/simple_vit_with_register_tokens.py:118-125 | vit_pytorch/simple_vit_with_sparse_gating.py:179-188 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_vit_with_register_tokens.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"530e2fba881b300043d0eb660f656d4017bfb8c95dd26f76670e953c75bb7e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): vit_pytorch/vit_with_decorr.py:125-134 | vit_pytorch/vit_with_keel_post_ln.py:46-55 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_with_decorr.py\u0060 and \u0060vit_pytorch/vit_with_keel_post_ln.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/vit_with_decorr.py:125\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":"vit_pytorch/vit_with_decorr.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b762b8638459f8dd9629672a1b1159d41928a99bae0b4d66fb0bd14f9fd2450a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 25): vit_pytorch/ats_vit.py:115-123 | vit_pytorch/cait.py:49-57 | vit_pytorch/cross_vit.py:20-28 | vit_pytorch/deepvit.py:10-18 | vit_pytorch/jet_vit.py:35-43 | vit_pytorch/learnable_memory_vit.py:32-40 | vit_pytorch/looped_vit.py:94-102 | vit_pytorch/mp3.py:38-46 | vit_pytorch/parallel_vit.py:24-32 | vit_pytorch/pit.py:22-30 | vit_pytorch/vaat.py:81-89 | vit_pytorch/vat.py:53-61 | vit_pytorch/vit.py:17-25 | vit_pytorch/vit_1d.py:11-19 | vit_pytorch/vit_3d.py:16-24 | vit_pytorch/vit_detpool.py:34-42 | vit_pytorch/vit_for_small_dataset.py:18-26 | vit_pytorch/vit_nd.py:30-38 | vit_pytorch/vit_nd_pope.py:116-124 | vit_pytorch/vit_nd_rotary.py:104-112 | vit_pytorch/vit_with_patch_dropout.py:35-43 | vit_pytorch/vit_with_patch_merger.py:37-45 | vit_pytorch/vivit.py:27-35 | vit_pytorch/vivit_with_moss.py:51-59 | vit_pytorch/xcit.py:60-68 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 25 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/ats_vit.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a998961a28772dc473a17833b2bb435ec602702f377eedecb58a3b9d558592f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 17): vit_pytorch/jet_vit.py:202-209 | vit_pytorch/local_vit.py:72-79 | vit_pytorch/mobile_vit.py:48-56 | vit_pytorch/parallel_vit.py:46-53 | vit_pytorch/pit.py:44-50 | vit_pytorch/vit.py:41-48 | vit_pytorch/vit_1d.py:33-40 | vit_pytorch/vit_3d.py:38-45 | vit_pytorch/vit_5.py:104-111 | vit_pytorch/vit_detpool.py:58-65 | vit_pytorch/vit_for_small_dataset.py:38-46 | vit_pytorch/vit_with_decorr.py:128-135 | vit_pytorch/vit_with_keel_post_ln.py:49-56 | vit_pytorch/vit_with_patch_dropout.py:57-64 | vit_pytorch/vit_with_patch_merger.py:59-66 | vit_pytorch/vivit.py:51-58 | vit_pytorch/vivit_with_moss.py:76-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 17 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/jet_vit.py:202\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/jet_vit.py:200\u0060 calls \u0060LayerNorm\u0060 and \u0060vit_pytorch/vit_with_decorr.py:126\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":"vit_pytorch/jet_vit.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"94654d30c9e54e4cb5085b5869e12883ca54774f632d41e869896df5206f7ef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 14): vit_pytorch/ats_vit.py:131-138 | vit_pytorch/jet_vit.py:197-205 | vit_pytorch/local_vit.py:68-74 | vit_pytorch/mobile_vit.py:44-51 | vit_pytorch/parallel_vit.py:42-49 | vit_pytorch/pit.py:40-46 | vit_pytorch/vit.py:36-44 | vit_pytorch/vit_1d.py:29-36 | vit_pytorch/vit_3d.py:34-41 | vit_pytorch/vit_detpool.py:53-61 | vit_pytorch/vit_with_patch_dropout.py:53-60 | vit_pytorch/vit_with_patch_merger.py:55-62 | vit_pytorch/vivit.py:47-54 | vit_pytorch/vivit_with_moss.py:72-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 14 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/ats_vit.py:141\u0060 calls \u0060AdaptiveTokenSampling\u0060, \u0060exists\u0060 and \u0060vit_pytorch/jet_vit.py:207\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/ats_vit.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c935183c07bc0882adc672a1b2a456096fbc4b54a3db696333f3e6321378cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): vit_pytorch/jumbo_vit.py:60-68 | vit_pytorch/simple_uvit.py:57-65 | vit_pytorch/simple_vit.py:54-62 | vit_pytorch/simple_vit_1d.py:52-60 | vit_pytorch/simple_vit_3d.py:67-75 | vit_pytorch/simple_vit_orthog_residual_update.py:62-70 | vit_pytorch/simple_vit_with_fft.py:55-63 | vit_pytorch/simple_vit_with_hyper_connections.py:117-125 | vit_pytorch/simple_vit_with_patch_dropout.py:77-85 | vit_pytorch/simple_vit_with_register_tokens.py:59-67 \u2014 before extracting anything, compare \u0060vit_pytorch/jumbo_vit.py\u0060 and \u0060vit_pytorch/simple_uvit.py\u0060 as WHOLE FILES: this scan already matched 5 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":"vit_pytorch/jumbo_vit.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a6476b0ee35a00a641861f168a2fc30cfe4355708e35a8948b8d0fea8a2bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 8): vit_pytorch/learnable_memory_vit.py:110-117 | vit_pytorch/parallel_vit.py:93-100 | vit_pytorch/vaat.py:359-366 | vit_pytorch/vat.py:199-206 | vit_pytorch/vit.py:88-96 | vit_pytorch/vit_for_small_dataset.py:101-108 | vit_pytorch/vit_with_keel_post_ln.py:140-148 | vit_pytorch/vit_with_patch_dropout.py:99-106 \u2014 before extracting anything, compare \u0060vit_pytorch/learnable_memory_vit.py\u0060 and \u0060vit_pytorch/vit_for_small_dataset.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/learnable_memory_vit.py:110\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":"vit_pytorch/learnable_memory_vit.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce668912177829a9aef3cd2db1c606f439f60dcb39215cc5e124db3549e80cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): vit_pytorch/learnable_memory_vit.py:115-123 | vit_pytorch/vaat.py:364-371 | vit_pytorch/vat.py:204-211 | vit_pytorch/vit_with_decorr.py:214-221 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/learnable_memory_vit.py:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"vit_pytorch/learnable_memory_vit.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc4e91077ac24d89bc2a86647fe5dc6dd3cc8ee04f78ffc0e03466b9054b9c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): vit_pytorch/cvt.py:39-47 | vit_pytorch/nest.py:29-37 | vit_pytorch/twins_svt.py:47-55 \u2014 before extracting anything, compare \u0060vit_pytorch/cvt.py\u0060 and \u0060vit_pytorch/twins_svt.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cvt.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d465a42d9f40b684b2e931de061c7b06b1584489dcae0b253be6d9bbfb1f0af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): vit_pytorch/simple_flash_attn_vit_3d.py:138-146 | vit_pytorch/simple_vit_3d.py:95-103 | vit_pytorch/vit_3d.py:79-87 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_flash_attn_vit_3d.py\u0060 and \u0060vit_pytorch/simple_vit_3d.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/simple_flash_attn_vit_3d.py:138\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":"vit_pytorch/simple_flash_attn_vit_3d.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6eaef272e0d572827d3511494df37581fbb5cb58de803d3d2775fc6b783e4a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): vit_pytorch/cct.py:86-94 | vit_pytorch/cct_3d.py:86-94 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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":"vit_pytorch/cct.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3411a2a04c1029bef95923b6cd690f580e8532250f6138091da565c6397ecfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): vit_pytorch/cct.py:150-158 | vit_pytorch/cct_3d.py:150-158 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cct.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"027daa75399eb9e61a9edd9da272e22ada5155ae1d255e49461307961ed31cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): vit_pytorch/learnable_memory_vit.py:127-135 | vit_pytorch/local_vit.py:129-137 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/learnable_memory_vit.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b89b6c4cc8dc72dd73fe7d477bb34aed2c6aeb379b38b8d0044decf4690d42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): vit_pytorch/levjepa.py:194-202 | vit_pytorch/levjepa_nd.py:174-182 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 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":"vit_pytorch/levjepa.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b3c53d218a56ebb99694f7ab2428a4e995d4496f68c74def25849da7b8ac43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): vit_pytorch/levjepa.py:392-400 | vit_pytorch/levjepa_nd.py:379-387 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 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":"vit_pytorch/levjepa.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"138b5bc61a7268ece326022321ebdb574364bde4de4d8568068d791956d597e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): vit_pytorch/max_vit.py:176-184 | vit_pytorch/max_vit_with_registers.py:172-180 \u2014 before extracting anything, compare \u0060vit_pytorch/max_vit.py\u0060 and \u0060vit_pytorch/max_vit_with_registers.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/max_vit.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdf0e184c4f8a154458dc15c5fbfe10f739ce336eb60524072307cc737cfeea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): vit_pytorch/simple_vit_1d.py:89-97 | vit_pytorch/simple_vit_3d.py:107-115 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_vit_1d.py\u0060 and \u0060vit_pytorch/simple_vit_3d.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/simple_vit_1d.py:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_vit_1d.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55d7b18907052b93b4f30997d3a36d2e63b0dee5e950067f5bcbb30fc1a55df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 13): vit_pytorch/ats_vit.py:217-224 | vit_pytorch/learnable_memory_vit.py:109-116 | vit_pytorch/mp3.py:108-115 | vit_pytorch/parallel_vit.py:92-99 | vit_pytorch/simple_flash_attn_vit.py:141-148 | vit_pytorch/simple_vit_with_patch_dropout.py:105-112 | vit_pytorch/vit.py:87-94 | vit_pytorch/vit_5.py:165-172 | vit_pytorch/vit_detpool.py:109-116 | vit_pytorch/vit_for_small_dataset.py:100-107 | vit_pytorch/vit_with_keel_post_ln.py:139-146 | vit_pytorch/vit_with_patch_dropout.py:98-105 | vit_pytorch/vit_with_patch_merger.py:109-116 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 13 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/ats_vit.py:217\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/learnable_memory_vit.py:117\u0060 calls \u0060cls\u0060, \u0060mean\u0060 and \u0060vit_pytorch/ats_vit.py:226\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":"vit_pytorch/ats_vit.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"317938b4ade0b418ba596da83020661000ddc047b0522199d92de0cf64268fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12): vit_pytorch/jet_vit.py:216-223 | vit_pytorch/mobile_vit.py:62-69 | vit_pytorch/parallel_vit.py:59-66 | vit_pytorch/vaat.py:151-158 | vit_pytorch/vat.py:123-130 | vit_pytorch/vit.py:55-62 | vit_pytorch/vit_1d.py:46-53 | vit_pytorch/vit_3d.py:51-58 | vit_pytorch/vit_with_decorr.py:142-149 | vit_pytorch/vit_with_keel_post_ln.py:63-70 | vit_pytorch/vit_with_patch_dropout.py:70-77 | vit_pytorch/vit_with_patch_merger.py:72-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 12 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/vaat.py:160\u0060 calls \u0060to_out_gates\u0060 and \u0060vit_pytorch/jet_vit.py:224\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":"vit_pytorch/jet_vit.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b93a5bdbcf021727c863153d27eee5ffaa69fd5539e70f3e9aabe7ec13030f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 11): vit_pytorch/jet_vit.py:218-225 | vit_pytorch/mobile_vit.py:64-71 | vit_pytorch/parallel_vit.py:61-68 | vit_pytorch/vit.py:57-64 | vit_pytorch/vit_1d.py:48-55 | vit_pytorch/vit_3d.py:53-60 | vit_pytorch/vit_5.py:130-137 | vit_pytorch/vit_with_decorr.py:144-150 | vit_pytorch/vit_with_keel_post_ln.py:65-72 | vit_pytorch/vit_with_patch_dropout.py:72-79 | vit_pytorch/vit_with_patch_merger.py:74-81 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 11 call sites, so a change lands once. 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":"vit_pytorch/jet_vit.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d0f09ba9f2be98747281b8c0892a596433d6cf062f733dd1bf67c381744186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): vit_pytorch/ats_vit.py:226-233 | vit_pytorch/cross_vit.py:181-188 | vit_pytorch/deepvit.py:95-102 | vit_pytorch/efficient.py:18-25 | vit_pytorch/learnable_memory_vit.py:119-126 | vit_pytorch/vit_with_patch_merger.py:118-125 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/learnable_memory_vit.py:117\u0060 calls \u0060cls\u0060, \u0060mean\u0060 and \u0060vit_pytorch/ats_vit.py:224\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":"vit_pytorch/ats_vit.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b697f5059a88dbf7f30aa2277eb097266f319d043bea23a51b3a25f11ac663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20138 lines \u00D7 8): vit_pytorch/cait.py:89-90 | vit_pytorch/cross_vit.py:62-69 | vit_pytorch/deepvit.py:49-52 | vit_pytorch/local_vit.py:86-93 | vit_pytorch/mp3.py:80-87 | vit_pytorch/nest.py:65-72 | vit_pytorch/pit.py:58-65 | vit_pytorch/xcit.py:98-105 \u2014 before extracting anything, compare \u0060vit_pytorch/cait.py\u0060 and \u0060vit_pytorch/xcit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/cait.py:87\u0060 calls \u0060exists\u0060, \u0060cat\u0060, \u0060to_q\u0060 and \u0060vit_pytorch/deepvit.py:49\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":"vit_pytorch/cait.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"919902fdbe8f035ec17dedf043df606e6f98c5877b5e7b9e99c4d1745c0e00a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): vit_pytorch/ats_vit.py:129-136 | vit_pytorch/cross_vit.py:36-43 | vit_pytorch/learnable_memory_vit.py:46-54 | vit_pytorch/local_vit.py:65-73 | vit_pytorch/mobile_vit.py:42-49 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/ats_vit.py:141\u0060 calls \u0060AdaptiveTokenSampling\u0060, \u0060exists\u0060 and \u0060vit_pytorch/local_vit.py:76\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":"vit_pytorch/ats_vit.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f978a83c809d4da3f58426d07d4d049d982d505f98437b200d6f1bd4daccbf1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): vit_pytorch/jet_vit.py:322-329 | vit_pytorch/vaat.py:368-375 | vit_pytorch/vat.py:208-215 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/jet_vit.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b664bf56512148da83c8383388d0544f54d8de1e3c45337423757a646f5792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): vit_pytorch/local_vit.py:123-130 | vit_pytorch/vit_3d.py:93-100 | vit_pytorch/vit_with_decorr.py:220-227 \u2014 before extracting anything, compare \u0060vit_pytorch/local_vit.py\u0060 and \u0060vit_pytorch/vit_3d.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/local_vit.py:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/vit_3d.py:105\u0060 calls \u0060Identity\u0060 and \u0060vit_pytorch/local_vit.py:134\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":"vit_pytorch/local_vit.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf453f09a28f7b3d3884fe860e7e65eb505ca3ecdc90f0a51692b2795960732b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): vit_pytorch/mp3.py:122-129 | vit_pytorch/simple_flash_attn_vit.py:152-159 | vit_pytorch/simple_flash_attn_vit_3d.py:150-157 \u2014 before extracting anything, compare \u0060vit_pytorch/mp3.py\u0060 and \u0060vit_pytorch/simple_flash_attn_vit.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/mp3.py:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/mp3.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc4814f0f93c83886882c435056f21af71e11240dc65808bf38dcd780edad0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): vit_pytorch/na_vit.py:239-246 | vit_pytorch/na_vit_nested_tensor.py:192-199 | vit_pytorch/na_vit_nested_tensor_3d.py:206-213 \u2014 before extracting anything, compare \u0060vit_pytorch/na_vit_nested_tensor.py\u0060 and \u0060vit_pytorch/na_vit_nested_tensor_3d.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/na_vit.py:239\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":"vit_pytorch/na_vit.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2322f2a3d3296674d63f9600a585f31d630c8b2e774a9e0139de3b17dfed66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): vit_pytorch/mobile_vit.py:111-118 | vit_pytorch/mobile_vit.py:126-133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/mobile_vit.py:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/mobile_vit.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edbe22c092c2103d02f490fab51a17887073901935e73fecf31a5e9443aeb56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): vit_pytorch/vit_nd_pope.py:138-145 | vit_pytorch/vit_nd_rotary.py:127-134 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_nd_pope.py\u0060 and \u0060vit_pytorch/vit_nd_rotary.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 150 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":"vit_pytorch/vit_nd_pope.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"7697819a0dd89ba712e4437d7e3e9541c998a27f5323d8debd35c3fed92bf3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): vit_pytorch/deepvit.py:103-109 | vit_pytorch/vit_3d.py:99-105 | vit_pytorch/vit_for_small_dataset.py:113-119 | vit_pytorch/vit_with_decorr.py:226-232 \u2014 before extracting anything, compare \u0060vit_pytorch/deepvit.py\u0060 and \u0060vit_pytorch/vit_3d.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 59 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":"vit_pytorch/deepvit.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4575024696f508b2926ce68a26d0daeaf3a75eca86c6b6fd79cb784b04a956e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): vit_pytorch/cross_vit.py:45-51 | vit_pytorch/learnable_memory_vit.py:56-62 | vit_pytorch/mp3.py:64-70 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/mp3.py:62\u0060 calls \u0060LayerNorm\u0060 and \u0060vit_pytorch/cross_vit.py:43\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":"vit_pytorch/cross_vit.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4628c1707cfe4cfd9038524c8eda764ea6cc8b8debd4236a6c1953759eac18e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): vit_pytorch/dino.py:135-141 | vit_pytorch/es_vit.py:162-168 | vit_pytorch/lejepa.py:161-167 \u2014 before extracting anything, compare \u0060vit_pytorch/dino.py\u0060 and \u0060vit_pytorch/es_vit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"vit_pytorch/dino.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"681b5f865d949ee1e0f73a9ec6a88c2d3c98017731bac9cd5139b730a9672c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): vit_pytorch/vaat.py:459-465 | vit_pytorch/vaat.py:478-484 | vit_pytorch/vat.py:293-299 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/vaat.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ca0b2d42bedc71dbe3f07ca5641a591576624476ce4154d31c992a5c21d891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): vit_pytorch/max_vit_with_registers.py:299-305 | vit_pytorch/max_vit_with_registers.py:324-330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/max_vit_with_registers.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eeac7560bd69d3955ba370a6743ed6607672685aa61862e25657391fa4b42bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): vit_pytorch/pit.py:172-178 | vit_pytorch/t2t.py:67-73 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/pit.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11ba03ab6bd559b6e74b9f63a421c71cd2e2a0c9c82e5aea150567ba66a7b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): vit_pytorch/simple_vit_with_qk_norm.py:69-75 | vit_pytorch/vit_5.py:115-121 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_vit_with_qk_norm.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"273956303ece8a96831226e8c5bf0c8e8b4bef287ffe4b831a3a94ef8165e0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): vit_pytorch/ats_vit.py:245-250 | vit_pytorch/cross_vit.py:193-198 | vit_pytorch/deepvit.py:117-122 | vit_pytorch/efficient.py:38-43 | vit_pytorch/local_vit.py:140-145 | vit_pytorch/parallel_vit.py:122-127 | vit_pytorch/vit_3d.py:113-118 | vit_pytorch/vit_for_small_dataset.py:127-132 | vit_pytorch/vit_with_decorr.py:254-259 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 9 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/deepvit.py:123\u0060 calls \u0060dropout\u0060 and \u0060vit_pytorch/efficient.py:44\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":"vit_pytorch/ats_vit.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6ea5677f72087d83dab237072eaa70435e3752491289fec4a043e676d83503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): vit_pytorch/cait.py:146-151 | vit_pytorch/cross_vit.py:181-186 | vit_pytorch/deepvit.py:95-100 | vit_pytorch/efficient.py:18-23 | vit_pytorch/learnable_memory_vit.py:119-124 | vit_pytorch/xcit.py:239-244 \u2014 before extracting anything, compare \u0060vit_pytorch/cait.py\u0060 and \u0060vit_pytorch/xcit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/deepvit.py:93\u0060 calls \u0060cls\u0060, \u0060mean\u0060 and \u0060vit_pytorch/cross_vit.py:179\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":"vit_pytorch/cait.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b3b404a8c396b1c7796fb026c40bf4e98fe3bcb5088e0e3c5b81dd8355a101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): vit_pytorch/local_vit.py:123-128 | vit_pytorch/vit_1d.py:82-87 | vit_pytorch/vit_3d.py:93-98 | vit_pytorch/vit_with_decorr.py:220-225 \u2014 before extracting anything, compare \u0060vit_pytorch/local_vit.py\u0060 and \u0060vit_pytorch/vit_1d.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/local_vit.py:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/local_vit.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"254dd3063dc9cb0b265c9f0e971eab6fd76ba9f1a2bd30ff6ea76ec80b096dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): vit_pytorch/crossformer.py:135-140 | vit_pytorch/sep_vit.py:148-156 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/crossformer.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d75e4b57735b076b931d269d381a71591fa54dfc8e206f7e1adbd230ece2b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): vit_pytorch/dino.py:276-281 | vit_pytorch/es_vit.py:321-326 \u2014 before extracting anything, compare \u0060vit_pytorch/dino.py\u0060 and \u0060vit_pytorch/es_vit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"vit_pytorch/dino.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"793a8ae02983480c4e3b1d19bb77de8b8092cc0934b7a73b26a0bcd32d727cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): vit_pytorch/max_vit.py:82-87 | vit_pytorch/max_vit_with_registers.py:77-82 \u2014 before extracting anything, compare \u0060vit_pytorch/max_vit.py\u0060 and \u0060vit_pytorch/max_vit_with_registers.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"vit_pytorch/max_vit.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e10a164475f91dd92a8531a05ed006072dbbf8127efcdec0546e04cc228fa0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): vit_pytorch/na_vit.py:227-233 | vit_pytorch/na_vit_nested_tensor.py:181-186 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/na_vit.py:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/na_vit.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c88d5728c42e61a16505522c5de06416d570e52359f49831c106f33ef5739c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): vit_pytorch/simple_flash_attn_vit.py:117-122 | vit_pytorch/simple_flash_attn_vit_3d.py:112-117 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_flash_attn_vit.py\u0060 and \u0060vit_pytorch/simple_flash_attn_vit_3d.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 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":"vit_pytorch/simple_flash_attn_vit.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e7bcd5380a115a245006dd1306d0d94d9242adb9b38f4203530371c9e8de17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): vit_pytorch/simple_vit_attn_residual.py:73-78 | vit_pytorch/vat_siglip.py:67-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_vit_attn_residual.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd770e8352b9c229af4c6c6233255491fae3878ac927b49b8547fe4a7450913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 22): vit_pytorch/jet_vit.py:216-220 | vit_pytorch/jumbo_vit.py:60-64 | vit_pytorch/mobile_vit.py:62-66 | vit_pytorch/parallel_vit.py:59-63 | vit_pytorch/simple_uvit.py:57-61 | vit_pytorch/simple_vit.py:54-58 | vit_pytorch/simple_vit_1d.py:52-56 | vit_pytorch/simple_vit_3d.py:67-71 | vit_pytorch/simple_vit_orthog_residual_update.py:62-66 | vit_pytorch/simple_vit_with_fft.py:55-59 | vit_pytorch/simple_vit_with_hyper_connections.py:117-121 | vit_pytorch/simple_vit_with_patch_dropout.py:77-81 | vit_pytorch/simple_vit_with_register_tokens.py:59-63 | vit_pytorch/vaat.py:151-155 | vit_pytorch/vat.py:123-127 | vit_pytorch/vit.py:55-59 | vit_pytorch/vit_1d.py:46-50 | vit_pytorch/vit_3d.py:51-55 | vit_pytorch/vit_with_decorr.py:142-146 | vit_pytorch/vit_with_keel_post_ln.py:63-67 | vit_pytorch/vit_with_patch_dropout.py:70-74 | vit_pytorch/vit_with_patch_merger.py:72-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 22 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/jet_vit.py:221\u0060 calls \u0060dropout\u0060 and \u0060vit_pytorch/jumbo_vit.py:66\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/jet_vit.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"51274d36e0f8db789b90af226a1d5fc10cd15841a735f7b57ea2d2ef597e7fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): vit_pytorch/ats_vit.py:246-250 | vit_pytorch/deepvit.py:118-122 | vit_pytorch/efficient.py:39-43 | vit_pytorch/local_vit.py:141-145 | vit_pytorch/mpp.py:160-165 | vit_pytorch/parallel_vit.py:123-127 | vit_pytorch/vit_3d.py:114-118 | vit_pytorch/vit_for_small_dataset.py:128-132 | vit_pytorch/vit_with_decorr.py:255-259 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 9 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/deepvit.py:123\u0060 calls \u0060dropout\u0060 and \u0060vit_pytorch/efficient.py:44\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":"vit_pytorch/ats_vit.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"030fb6f3315b3ce943ed39020b343b5e877af84d99226ed428bf414b2766eec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): vit_pytorch/simple_vit.py:14-18 | vit_pytorch/simple_vit_orthog_residual_update.py:22-26 | vit_pytorch/simple_vit_with_fft.py:15-19 | vit_pytorch/simple_vit_with_hyper_connections.py:22-26 | vit_pytorch/simple_vit_with_qk_norm.py:15-19 | vit_pytorch/simple_vit_with_register_tokens.py:19-23 | vit_pytorch/simple_vit_with_specialized_cls.py:25-29 | vit_pytorch/simple_vit_with_value_residual.py:21-25 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_vit.py\u0060 and \u0060vit_pytorch/simple_vit_orthog_residual_update.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/simple_vit.py:14\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":"vit_pytorch/simple_vit.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59e33ba93ab61e20bae6bc4cf2d62ab27eac665793cfd3e45b73fd7d9cb9dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): vit_pytorch/local_vit.py:126-130 | vit_pytorch/parallel_vit.py:105-109 | vit_pytorch/vit_3d.py:96-100 | vit_pytorch/vit_with_decorr.py:223-227 \u2014 before extracting anything, compare \u0060vit_pytorch/local_vit.py\u0060 and \u0060vit_pytorch/parallel_vit.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/local_vit.py:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/vit_3d.py:105\u0060 calls \u0060Identity\u0060 and \u0060vit_pytorch/local_vit.py:134\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":"vit_pytorch/local_vit.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8c23ce2bbd857d1a714dd9b4e66f7638f5cb44848becc8f1ace2bfe91039cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 5): vit_pytorch/look_vit.py:24-25 | vit_pytorch/mp3.py:25-29 | vit_pytorch/simple_flash_attn_vit.py:24-28 | vit_pytorch/simple_vit_1d.py:13-17 | vit_pytorch/simple_vit_with_patch_dropout.py:16-20 \u2014 before extracting anything, compare \u0060vit_pytorch/mp3.py\u0060 and \u0060vit_pytorch/simple_flash_attn_vit.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/mp3.py:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/look_vit.py:26\u0060 calls \u0060arange\u0060 and \u0060vit_pytorch/mp3.py:29\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/look_vit.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"378a28aa3ae69b5501f5f82f99f0577c2d6181315a9938e99f4c759f900bfe21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): vit_pytorch/jet_vit.py:114-118 | vit_pytorch/max_vit.py:152-156 | vit_pytorch/max_vit_with_registers.py:151-155 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060vit_pytorch/max_vit_with_registers.py:158\u0060 calls \u0060pad\u0060 and \u0060vit_pytorch/jet_vit.py:121\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":"vit_pytorch/jet_vit.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"33414f879b0772adbff21cfda3a3a6650251d57f79b3e2d41c3b1e70c69cda50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): vit_pytorch/vit_nd.py:114-118 | vit_pytorch/vit_nd_pope.py:222-226 | vit_pytorch/vit_nd_rotary.py:197-201 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_nd_pope.py\u0060 and \u0060vit_pytorch/vit_nd_rotary.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 150 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":"vit_pytorch/vit_nd.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2aac3bcfa6b38160b0f633468f6b9835cb5f14a0e664314a5faa23ec16e3189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): vit_pytorch/jumbo_vit.py:21-26 | vit_pytorch/look_vit.py:27-30 | vit_pytorch/simple_uvit.py:21-25 | vit_pytorch/simple_vit_with_sparse_gating.py:21-25 \u2014 before extracting anything, compare \u0060vit_pytorch/jumbo_vit.py\u0060 and \u0060vit_pytorch/simple_uvit.py\u0060 as WHOLE FILES: this scan already matched 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/jumbo_vit.py:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/jumbo_vit.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5faf1531e3a6fbca8a10b9f7ea6b299e08fb9521bcae1638e3ba92775b2af363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): vit_pytorch/levjepa.py:348-352 | vit_pytorch/levjepa_nd.py:340-344 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/levjepa.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"247c41f30506938788f76564b9a9d1aa1407410e3db7750644d832c7091326c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): vit_pytorch/max_vit_with_registers.py:168-172 | vit_pytorch/regionvit.py:91-95 | vit_pytorch/xcit.py:132-135 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/max_vit_with_registers.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4d17815522745174a6f013e3a1208060e910a69a88aa90d17826cb358abb4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): vit_pytorch/simple_vit_attn_residual.py:31-35 | vit_pytorch/simple_vit_with_relative_proj_pos_bias.py:24-28 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/simple_vit_attn_residual.py:31\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":"vit_pytorch/simple_vit_attn_residual.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8b2cdae714a7da13f74cad95e81c4d5f9f141f03320276b02417d846d632ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): vit_pytorch/simple_vit_with_value_residual.py:60-65 | vit_pytorch/vivit.py:78-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_vit_with_value_residual.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd809e899cca55a333ab77ccd4b78b53197928c8bf25468637545fac4b663f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): vit_pytorch/cvt.py:88-90 | vit_pytorch/twins_svt.py:112-116 | vit_pytorch/twins_svt.py:148-152 \u2014 before extracting anything, compare \u0060vit_pytorch/cvt.py\u0060 and \u0060vit_pytorch/twins_svt.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060vit_pytorch/cvt.py:86\u0060 calls \u0060norm\u0060 and \u0060vit_pytorch/twins_svt.py:145\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cvt.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7f1027df84eab1907c728f77065f5b2ee34f5bcb59252e627234041e0134ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): vit_pytorch/vit_nd_pope.py:46-50 | vit_pytorch/vit_nd_rotary.py:42-46 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_nd_pope.py\u0060 and \u0060vit_pytorch/vit_nd_rotary.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vit_nd_pope.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"961099a90c28f668264be2be88c81396764566993dad365ae50b8a0c46c8ed85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): vit_pytorch/cait.py:117-122 | vit_pytorch/xcit.py:183-189 \u2014 before extracting anything, compare \u0060vit_pytorch/cait.py\u0060 and \u0060vit_pytorch/xcit.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cait.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7c5351af6b480fe89129dac1cda145ba1d6dca8da140a926fe47d4a023580f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 16): vit_pytorch/cross_vit.py:113-119 | vit_pytorch/cross_vit.py:148-155 | vit_pytorch/crossformer.py:186-195 | vit_pytorch/cvt.py:101-107 | vit_pytorch/deepvit.py:74-80 | vit_pytorch/learnable_memory_vit.py:91-97 | vit_pytorch/local_vit.py:99-105 | vit_pytorch/mobile_vit.py:80-86 | vit_pytorch/mp3.py:93-99 | vit_pytorch/pit.py:71-77 | vit_pytorch/simple_flash_attn_vit.py:126-132 | vit_pytorch/twins_svt.py:161-169 | vit_pytorch/vit_1d.py:59-65 | vit_pytorch/vit_3d.py:64-70 | vit_pytorch/vit_for_small_dataset.py:68-74 | vit_pytorch/vit_with_patch_dropout.py:83-89 \u2014 before extracting anything, compare \u0060vit_pytorch/cross_vit.py\u0060 and \u0060vit_pytorch/deepvit.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cross_vit.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"466900a080e15799980dabfcd085860ace0d926d10afe039a78bc0ca1d418aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): vit_pytorch/cvt.py:11-16 | vit_pytorch/twins_svt.py:11-16 \u2014 before extracting anything, compare \u0060vit_pytorch/cvt.py\u0060 and \u0060vit_pytorch/twins_svt.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"vit_pytorch/cvt.py"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"661ae8075ce55341457dbc6f90605d10385e704cc6561910a91999cf29f3184b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): vit_pytorch/dino.py:122-132 | vit_pytorch/lejepa.py:148-158 \u2014 before extracting anything, compare \u0060vit_pytorch/dino.py\u0060 and \u0060vit_pytorch/lejepa.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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":"vit_pytorch/dino.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"070b20a1a914260f37d861939cccc1c1322c0209e858b2d8ca812f62552c5aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): vit_pytorch/levjepa.py:138-142 | vit_pytorch/levjepa_nd.py:116-120 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 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":"vit_pytorch/levjepa.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92626cb966e166d76272c68bf2a3d684cb6f63a11ab93dcf86c83b3e2957355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): vit_pytorch/levjepa.py:209-215 | vit_pytorch/levjepa_nd.py:189-196 | vit_pytorch/looped_vit.py:166-178 | vit_pytorch/simple_flash_attn_vit_3d.py:121-127 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 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":"vit_pytorch/levjepa.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da65dcea50914ec8944448dbf4872e1306abaa3e668498c6021c40ef97ce878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): vit_pytorch/levjepa.py:338-342 | vit_pytorch/levjepa_nd.py:330-334 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 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":"vit_pytorch/levjepa.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"6343e37b26b7bded959f690893848f7fc38859b0fc04c7405b9b2fe71ad6f30d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): vit_pytorch/na_vit_nested_tensor.py:34-41 | vit_pytorch/na_vit_nested_tensor_3d.py:34-41 \u2014 before extracting anything, compare \u0060vit_pytorch/na_vit_nested_tensor.py\u0060 and \u0060vit_pytorch/na_vit_nested_tensor_3d.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/na_vit_nested_tensor.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c43864f7fc1c8acac07e263c35c13543bc20468a49cf8c38e5c092ca63fb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): vit_pytorch/na_vit_nested_tensor.py:115-124 | vit_pytorch/na_vit_nested_tensor_3d.py:116-125 \u2014 before extracting anything, compare \u0060vit_pytorch/na_vit_nested_tensor.py\u0060 and \u0060vit_pytorch/na_vit_nested_tensor_3d.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 157 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":"vit_pytorch/na_vit_nested_tensor.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50b9e9fba2e9e7c952f7036d3d2d277ac4e00f425e54a7b913a1f13206f0d21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): vit_pytorch/simple_flash_attn_vit.py:90-96 | vit_pytorch/simple_flash_attn_vit_3d.py:85-91 | vit_pytorch/simple_vit.py:27-33 | vit_pytorch/simple_vit_1d.py:25-31 | vit_pytorch/simple_vit_3d.py:40-46 | vit_pytorch/simple_vit_attn_residual.py:44-50 | vit_pytorch/simple_vit_orthog_residual_update.py:35-41 | vit_pytorch/simple_vit_with_fft.py:28-34 | vit_pytorch/simple_vit_with_hyper_connections.py:90-96 | vit_pytorch/simple_vit_with_patch_dropout.py:50-56 | vit_pytorch/simple_vit_with_qk_norm.py:43-49 | vit_pytorch/simple_vit_with_register_tokens.py:32-38 | vit_pytorch/simple_vit_with_relative_proj_pos_bias.py:104-110 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_flash_attn_vit.py\u0060 and \u0060vit_pytorch/simple_flash_attn_vit_3d.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 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":"vit_pytorch/simple_flash_attn_vit.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb6f8f3577a123a09b86f8bb7218d75b6f5914370e1435eff01f17d0bad1135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): vit_pytorch/simple_uvit.py:33-38 | vit_pytorch/simple_vit_with_value_residual.py:33-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/simple_uvit.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3b9807d0f34eb1f91c2db35e948b0e4e150cf3481b1eca92ef4756b01a15ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): vit_pytorch/simple_vit.py:66-73 | vit_pytorch/simple_vit_1d.py:64-71 | vit_pytorch/simple_vit_3d.py:79-86 | vit_pytorch/simple_vit_with_fft.py:67-74 | vit_pytorch/simple_vit_with_patch_dropout.py:89-96 | vit_pytorch/simple_vit_with_qk_norm.py:87-94 | vit_pytorch/simple_vit_with_register_tokens.py:71-78 | vit_pytorch/vit_nd.py:72-79 \u2014 before extracting anything, compare \u0060vit_pytorch/simple_vit.py\u0060 and \u0060vit_pytorch/simple_vit_1d.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 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":"vit_pytorch/simple_vit.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd4509bb0e26dc8835cab015ec59fbfbad850bbf56000668dcfe51a69df7f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): vit_pytorch/simple_vit_with_relative_proj_pos_bias.py:162-169 | vit_pytorch/vaat.py:175-183 | vit_pytorch/vat.py:146-154 | vit_pytorch/vit.py:68-76 | vit_pytorch/vit_detpool.py:90-98 | vit_pytorch/vit_nd_rotary.py:155-162 | vit_pytorch/vit_with_decorr.py:156-164 | vit_pytorch/vivit_with_moss.py:141-149 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/simple_vit_with_relative_proj_pos_bias.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be6f45e3f928267c92aa54b7ef4c771c16a864aef71c6125bf30973ef0e7a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): vit_pytorch/vaat.py:58-67 | vit_pytorch/vat.py:30-39 | vit_pytorch/vat_siglip.py:155-164 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 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":"vit_pytorch/vaat.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25367324d121becccfe65527c8d4c29fc8d65a1bceed4467d2c1a3d7dbe1234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): vit_pytorch/vaat.py:191-204 | vit_pytorch/vat.py:162-175 \u2014 before extracting anything, compare \u0060vit_pytorch/vaat.py\u0060 and \u0060vit_pytorch/vat.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vaat.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd4ba2a20410ac3989e97c7c23bb2fb98b1c33e43ec99121d401dfcc9f9ddd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): vit_pytorch/vit_detpool.py:101-105 | vit_pytorch/vivit.py:117-121 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vit_detpool.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a58e565fa34e92b95aaaa439ced58bce28df1893ae2e544476d0d1acaad07d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): vit_pytorch/vit_nd_pope.py:280-294 | vit_pytorch/vit_nd_rotary.py:253-267 \u2014 before extracting anything, compare \u0060vit_pytorch/vit_nd_pope.py\u0060 and \u0060vit_pytorch/vit_nd_rotary.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/vit_nd_pope.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b990fd976ffa6c21ec852eee36224f24886258da4a2823d975f0a247e24027e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): vit_pytorch/cct.py:76-80 | vit_pytorch/cct_3d.py:76-80 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060vit_pytorch/cct.py:76\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":"vit_pytorch/cct.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"24387a04777d2502e8cf1651e8ad581a024bc089e92990abdc17b0bfc622d9d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): vit_pytorch/cct.py:138-142 | vit_pytorch/cct_3d.py:138-142 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/cct.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"116192707c4398b5a1635ca84a2084b2935bd49624e73338939e6144df59a2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): vit_pytorch/cct.py:296-302 | vit_pytorch/cct_3d.py:287-293 \u2014 before extracting anything, compare \u0060vit_pytorch/cct.py\u0060 and \u0060vit_pytorch/cct_3d.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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":"vit_pytorch/cct.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"35699ef1c86f1ea3d05d51598492893f3cefa0669775f0941d64933532928c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): vit_pytorch/levjepa.py:151-160 | vit_pytorch/levjepa_nd.py:129-138 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/levjepa.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a61697c81463ac636d469d4a6627ab46d6bff0d0fff4e3fa3b882ef15340db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): vit_pytorch/levjepa.py:310-316 | vit_pytorch/levjepa_nd.py:296-302 \u2014 before extracting anything, compare \u0060vit_pytorch/levjepa.py\u0060 and \u0060vit_pytorch/levjepa_nd.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 88 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":"vit_pytorch/levjepa.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1005f2e2b7f0e32cde538926e69c8dacb4fcb8149ca472495adc82b4089561d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): vit_pytorch/local_vit.py:33-37 | vit_pytorch/pit.py:88-92 | vit_pytorch/rvt.py:51-55 \u2014 before extracting anything, compare \u0060vit_pytorch/local_vit.py\u0060 and \u0060vit_pytorch/pit.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/local_vit.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"521cb0a41b6e8729af6f0700ad69a884cdaf07aba0f1d6f3684472ff022f675e"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (15339 LoC, 478 module-visible types across 2 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 81 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 and example/demo trees and test files identified by path convention, largest first; 81 of the 85 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: vit_pytorch/mpp.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":"vit_pytorch/mpp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a414ae27eb8f22ca9bce6ec4b6398dbb1ab55272fd11ec48f09796441e141f"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Production code isn\u0027t grouped under a src/ folder \u2014 it\u0027s spread across several top-level directories, so there\u0027s no one place that says \u0027this is the product\u0027."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README claims NaViT uses nested tensors but evidence shows only a non-nested NaViT import \u2014 searched for: \u0060nested-tensors\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"343bbbd51ceb8de7a9ff88d79f7c797abf9b5921f8727b67b4d0f4f8a22c5e49"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060divisible_by(image_height, patch_height) and divisible_by(image_width, patch_width)\u0060 appears character-identically in 8 files \u2014 vit_pytorch/jumbo_vit.py, vit_pytorch/simple_uvit.py, vit_pytorch/simple_vit_attn_residual.py, vit_pytorch/simple_vit_with_relative_proj_pos_bias.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":"vit_pytorch/jumbo_vit.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b28c1fa9c81cda2bf5fcc138744068ed878f645098eb524cd19d94affe92ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060divisible_by(image_height, patch_size) and divisible_by(image_width, patch_size)\u0060 appears character-identically in 4 files \u2014 vit_pytorch/na_vit.py, vit_pytorch/na_vit_nested_tensor.py, vit_pytorch/na_vit_nested_tensor_3d.py, vit_pytorch/normalized_vit.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":"vit_pytorch/na_vit.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b32b7e3e815463c5b45dfed4ca1ca641801cafeeb581b8aa5ad749644455ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060exists(sequence_length) or positional_embedding == \u0027none\u0027\u0060 appears character-identically in 2 files \u2014 vit_pytorch/cct.py, vit_pytorch/cct_3d.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":"vit_pytorch/cct.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0975765a433d6ee4bdc898032754df53a5f12ef185a2859b4caad40a48ebe7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image_height % patch_height == 0 and image_width % patch_width == 0\u0060 appears character-identically in 27 files \u2014 vit_pytorch/ats_vit.py, vit_pytorch/jet_vit.py, vit_pytorch/learnable_memory_vit.py, vit_pytorch/mp3.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":"vit_pytorch/ats_vit.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"22087a9fb8de665d844678c256aa16fac86c4af0f3fbc97dd39a8d5e616068a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(m, nn.Linear) and exists(m.bias)\u0060 appears character-identically in 2 files \u2014 vit_pytorch/cct.py, vit_pytorch/cct_3d.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":"vit_pytorch/cct.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"109ba8a83d7ddc2045542f26da9b2253f3d9f32b4d4a040705b58566d8906d6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not exists(self.positional_emb) and x.size(1) \u003C self.sequence_length\u0060 appears character-identically in 2 files \u2014 vit_pytorch/cct.py, vit_pytorch/cct_3d.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":"vit_pytorch/cct.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"943fdab7bb1abe585fdd259901c627b26295d0774f088b698347c883155c6e3f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.has_advantages and exists(advantages)\u0060 appears character-identically in 3 files \u2014 vit_pytorch/vaat.py, vit_pytorch/vat.py, vit_pytorch/vat_siglip.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":"vit_pytorch/vaat.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cfd30ba29e81dcfea77c993f3c8d98362709ab217eff45bd3b2f16e2edb117"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.training and self.token_dropout_prob \u003E 0\u0060 appears character-identically in 2 files \u2014 vit_pytorch/na_vit_nested_tensor.py, vit_pytorch/na_vit_nested_tensor_3d.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":"vit_pytorch/na_vit_nested_tensor.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a77eef138c88dfabcaf5e82f3264307a4222f51870bb49f0352848106d83abb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060use_flash and version.parse(torch.__version__) \u003C version.parse(\u00272.0.0\u0027)\u0060 appears character-identically in 2 files \u2014 vit_pytorch/simple_flash_attn_vit.py, vit_pytorch/simple_flash_attn_vit_3d.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":"vit_pytorch/simple_flash_attn_vit.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"263a6f33ff23bc9ecf0141eb2b7c591ef10236aa146f89829fdfd843b397add5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060video_or_image.ndim == 5 and not self.is_video\u0060 appears character-identically in 2 files \u2014 vit_pytorch/vaat.py, vit_pytorch/vat.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":"vit_pytorch/vaat.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9a051764c3c946201c4be8a7a1544160948f94fc80efac45a039623e6f1115"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060video_or_image.ndim == 6 and self.is_video\u0060 appears character-identically in 2 files \u2014 vit_pytorch/vaat.py, vit_pytorch/vat.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":"vit_pytorch/vaat.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2df5805899e2d9a89a08689b74b96e201480ff721a5b28901cb49200a1ab0f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060vit.depth == depth or exists(vit_layer_indices)\u0060 appears character-identically in 2 files \u2014 vit_pytorch/vaat.py, vit_pytorch/vat.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":"vit_pytorch/vaat.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2633f50aa35e74fd98efd140f95ddfa8b2734dfbc14aad5974b906f6522001"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/levjepa_nd.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c298ea463bffc5af48aab6c8f018fa4b8b2bb49fb80e464912cc7752be7d1473"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/levjepa_nd.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"62061d4a82130c4f4b4e01e571b28681420874214e96f5236de41e942d4d2e06"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vit_pytorch/levjepa.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b2e16cdebfb4163d0b0b6d1ec1487ebaed904a34c427026d4a18848bbfbe5c"}}],"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-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":"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":0,"secretScannerRunsExcluded":0}}}]}