{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"OVInstanceCriterion.__call__ (cyclomatic 48): OVInstanceCriterion.__call__ has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: uniseg3d/instance_criterion.py holds 2 of the 9 methods over the threshold \u2014 including the worst \u2014 and 50 of the 114 points over it (44%), 2.8\u00D7 the next-largest file (uniseg3d/evaluate_semantic_instance.py at 18). 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":"uniseg3d/instance_criterion.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb61cd596c87d19a30ace6893c49451bd803cb76c4af130551b28ea31aaae066"}},{"ruleId":"D1","level":"warning","message":{"text":"evaluate_semantic_instance.evaluate_matches (cyclomatic 33): evaluate_semantic_instance.evaluate_matches has cyclomatic complexity 33 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/evaluate_semantic_instance.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bf60981dfb7789677c26ce53cfe459cf419f20fbac98d3d6385e0bf86c62ab"}},{"ruleId":"D1","level":"warning","message":{"text":"OVInstanceCriterion.get_layer_loss (cyclomatic 32): OVInstanceCriterion.get_layer_loss has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: uniseg3d/instance_criterion.py holds 2 of the 9 methods over the threshold \u2014 including the worst \u2014 and 50 of the 114 points over it (44%), 2.8\u00D7 the next-largest file (uniseg3d/evaluate_semantic_instance.py at 18). 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":"uniseg3d/instance_criterion.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7916b59079e61dfd77fd40cad8ef478ec7abf563a4d207199b528646f1cd3157"}},{"ruleId":"D1","level":"warning","message":{"text":"factory.create_model (cyclomatic 31): factory.create_model has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/factory.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1448323d27feb6d0cd0dc93e07af89634d9dfa3899b95ecb50e37a23e4b154f"}},{"ruleId":"D1","level":"warning","message":{"text":"Det3DDataPreprocessor_.simple_process (cyclomatic 27): Det3DDataPreprocessor_.simple_process has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/data_preprocessor.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b79c74c28215a98c4a96b187ad3f1021e314fd00f57788ee5722ab71e3a034"}},{"ruleId":"D1","level":"warning","message":{"text":"Pack3DDetInputs_.pack_single_results (cyclomatic 25): Pack3DDetInputs_.pack_single_results has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/formatting.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5108ed7fb3ce362aaee3fc1f5e66c31a727db924c1bbb55e7cb4aa9003d6c6"}},{"ruleId":"D1","level":"warning","message":{"text":"ContrastiveCriterion.__call__ (cyclomatic 19): ContrastiveCriterion.__call__ has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/contrastive_criterion.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcffff156e55423b8cbf91518e8477802291f776a52cdff55fa13c9df314ec2"}},{"ruleId":"D1","level":"warning","message":{"text":"CoCa.generate (cyclomatic 18): CoCa.generate has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/coca_model.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba54d4fe42aa11c3df56a2f72c50bbe665261530d181b8a4cf906ad5717e62a9"}},{"ruleId":"D1","level":"warning","message":{"text":"UniSeg3D.predict (cyclomatic 16): UniSeg3D.predict has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e496c4f5c44f7cd1593364468a95d5259cec0ae81da93acb661c7b1b0a3caf"}},{"ruleId":"D2","level":"warning","message":{"text":"evaluate_semantic_instance.evaluate_matches (cognitive 155): evaluate_semantic_instance.evaluate_matches has cognitive complexity 155 (threshold 15). Drivers by points: if/else 16 (91 pts), loops 13 (56 pts), ternaries 1 (5 pts), boolean chains 3 (nesting depth added 122). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/evaluate_semantic_instance.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6138779bfdd874a12194b40a99e63965b34710e632ba4946b2ee78ed0c70b6"}},{"ruleId":"D2","level":"warning","message":{"text":"OVInstanceCriterion.__call__ (cognitive 92): OVInstanceCriterion.__call__ has cognitive complexity 92 (threshold 15). Drivers by points: if/else 36 (73 pts), loops 11 (16 pts), boolean chains 3 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81206409d6441b79607ef888f168463e4b6df00c108f80c215e168ce3ec2bee"}},{"ruleId":"D2","level":"warning","message":{"text":"factory.create_model (cognitive 61): factory.create_model has cognitive complexity 61 (threshold 15). Drivers by points: if/else 29 (50 pts), ternaries 2 (6 pts), boolean chains 5 (nesting depth added 25). 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":"open_clip/factory.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf49ed584c565f01a340d5dd391dfae12ad12fddf36b29385ff9ebe5eeacec8"}},{"ruleId":"D2","level":"warning","message":{"text":"OVInstanceCriterion.get_layer_loss (cognitive 59): OVInstanceCriterion.get_layer_loss has cognitive complexity 59 (threshold 15). Drivers by points: if/else 25 (49 pts), loops 8 (9 pts), boolean chains 1 (nesting depth added 25). 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":"uniseg3d/instance_criterion.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9cb10eeca57c73eedb7eb000eede3ad68c980b49d98759abe723390457367c"}},{"ruleId":"D2","level":"warning","message":{"text":"UniSeg3D.split_original_and_text_prompt_queries (cognitive 48): UniSeg3D.split_original_and_text_prompt_queries has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (42 pts), loops 3 (6 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (UniSeg3D.split_original_and_point_prompt_queries) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c4f5760b8f0a0c8c8cede8caec4b86587fa8a46a9bb7fdd29e7bd536ead46a"}},{"ruleId":"D2","level":"warning","message":{"text":"UniSeg3D.split_original_and_point_prompt_queries (cognitive 48): UniSeg3D.split_original_and_point_prompt_queries has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (42 pts), loops 3 (6 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (UniSeg3D.split_original_and_text_prompt_queries) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a013aa74e5e1527c3c3e0ed928891f2706424aa78ade4c42171e5d0f0664536"}},{"ruleId":"D2","level":"warning","message":{"text":"Pack3DDetInputs_.pack_single_results (cognitive 46): Pack3DDetInputs_.pack_single_results has cognitive complexity 46 (threshold 15). Drivers by points: if/else 25 (43 pts), loops 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/formatting.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1eb5ca3b505760db8774c83da251f02edf34e3f2943726a01d6f1949cafcc2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Det3DDataPreprocessor_.simple_process (cognitive 38): Det3DDataPreprocessor_.simple_process has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (29 pts), loops 2 (6 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/data_preprocessor.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec895cbca76d747d233a71d72745c02a12954e1d67d516be9d11cfced4319c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ContrastiveCriterion.__call__ (cognitive 35): ContrastiveCriterion.__call__ has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/contrastive_criterion.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"244494096f2f1701bc324deb5394a50bd8dc4c85d4c9e32f5f445d2c0765fd36"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptSupportedSegMetric.process (cognitive 31): PromptSupportedSegMetric.process has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/unified_metric.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b249dfcb187341ad2caee0684e11b8ec9938c8a06db99aab6c120b005fab4e8"}},{"ruleId":"D2","level":"warning","message":{"text":"push_to_hf_hub.generate_readme (cognitive 26): push_to_hf_hub.generate_readme has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 4 (12 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/push_to_hf_hub.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc509fe8f0b6d14686d9d675134a64b57c2b236ae64ca21a7cf995b6fbedb4be"}},{"ruleId":"D2","level":"warning","message":{"text":"transform.image_transform (cognitive 26): transform.image_transform has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/transform.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"34566effb970a21cd8124116d6f8d10c580df89593d5f48e4d31b9c236c996c1"}},{"ruleId":"D2","level":"warning","message":{"text":"CoCa.generate (cognitive 25): CoCa.generate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 3, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/coca_model.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03f325372da3733f1b0c7ece96839cbc82318333b8082fe0952e895fb578eb7"}},{"ruleId":"D2","level":"warning","message":{"text":"UniSeg3D.predict (cognitive 25): UniSeg3D.predict has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 4 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8c8ac8f5001e3ea48db9af2972ec0b9d6180ddacc557a87d3f319bfc8c82ea"}},{"ruleId":"D2","level":"warning","message":{"text":"load_scannet_data.export (cognitive 24): load_scannet_data.export has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 5 (11 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"data/scannet/load_scannet_data.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a30d90b911f768d52cc99f0a738239162a0555f08aa6173d5333e55ca6b22f"}},{"ruleId":"D2","level":"warning","message":{"text":"PointPromptInstanceCriterion.get_layer_loss (cognitive 23): PointPromptInstanceCriterion.get_layer_loss has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca078c79644ce24a385ef89ac2f0aa1d81b2570878212fbfcf5a17034bc52b3"}},{"ruleId":"D2","level":"warning","message":{"text":"TextPromptInstanceCriterion.get_layer_loss (cognitive 23): TextPromptInstanceCriterion.get_layer_loss has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/text_prompt_instance_criterion.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9db5a86ab9537269f0f5842e81ce21b231e3d6f37e556a5169185d2914da55"}},{"ruleId":"D2","level":"warning","message":{"text":"PointPromptInstanceCriterion.__call__ (cognitive 21): PointPromptInstanceCriterion.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 4 (5 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e529e2838b08bae411e9926c2e049a91f53b605487ca393c6c6c1be088256eea"}},{"ruleId":"D2","level":"warning","message":{"text":"TextPromptInstanceCriterion.__call__ (cognitive 21): TextPromptInstanceCriterion.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 4 (5 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/text_prompt_instance_criterion.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61e322b1503fc51d64f46b945146477f4feb29ae044d3cf06be271ccf771beb"}},{"ruleId":"D2","level":"warning","message":{"text":"ScanNetUnifiedCriterion.__call__ (cognitive 21): ScanNetUnifiedCriterion.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/unified_criterion.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89ad12eaf9de1d86beade076134e7fef142be319355e8326b0a9f5e2044d026"}},{"ruleId":"D2","level":"warning","message":{"text":"UniSeg3D.loss (cognitive 20): UniSeg3D.loss has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd65bc8c6ea1b92230947fff1009f79b781059a577563ca35ebc050f69d52da"}},{"ruleId":"D2","level":"warning","message":{"text":"pretrained.download_pretrained_from_url (cognitive 18): pretrained.download_pretrained_from_url has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, 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":"open_clip/pretrained.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afdc828f084110d7c8222a47c93c611a0ed9c7379e452b58d81108739ed1f69"}},{"ruleId":"D2","level":"warning","message":{"text":"TimmModel.lock (cognitive 18): TimmModel.lock has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (7 pts), error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/timm_model.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b11f16f0caedf58526d239b9dc6c7cb6b60a27bc6b59acc382bc4bc875d070"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleTokenizer.bpe (cognitive 18): SimpleTokenizer.bpe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/tokenizer.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"af89ea1246d1e4e1890635a4542f4afab5e02df751d9e51b0429265c03178185"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptSupportedUnifiedSegMetric.compute_metrics (cognitive 18): PromptSupportedUnifiedSegMetric.compute_metrics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/unified_metric.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03cc7dd27292cece7be8faf6191a71043e7aec90111184c825dac4ebec6ed15"}},{"ruleId":"D2","level":"warning","message":{"text":"TimmModel.__init__ (cognitive 17): TimmModel.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 2 (5 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/timm_model.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1483e5029342606144fe26ac1017c86ff5bb325cc282f5a646ff49969021c4df"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedQueryDecoder._forward_head (cognitive 17): UnifiedQueryDecoder._forward_head has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 3 (4 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/query_decoder.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcb377ea024c6821b998cf8facd437f33e229bccffeceec0208822aaa7d54e0"}},{"ruleId":"D2","level":"warning","message":{"text":"evaluate_semantic_instance.assign_instances_for_scan (cognitive 16): evaluate_semantic_instance.assign_instances_for_scan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 5 (7 pts) (nesting depth added 7). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/evaluate_semantic_instance.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdcdedaa4dd771ce00d92c00f16794f74e2a17b0dc0d120b9f63a1eb166023d"}},{"ruleId":"D2","level":"warning","message":{"text":"AddSuperPointAnnotations.transform (cognitive 16): AddSuperPointAnnotations.transform has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), loops 3 (4 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/transforms_3d.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0ec80de461f1f2d26c4f2dd6978bfbea89aedff0974493d66354f74c3960ad"}},{"ruleId":"D2","level":"warning","message":{"text":"UniSeg3D.add_point_prompt_queries (cognitive 16): UniSeg3D.add_point_prompt_queries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ee800515b89124d51c6baa854afda2f61af123803ed2e9df910152ce312001"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: open_clip/transformer.py: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 55 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/transformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"269bd471656acbfac5e1a0c647c0bfeced3b35b0af11d5f624eec07db2c480f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: uniseg3d/instance_criterion.py: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 26 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b5c9fcccbf31353febba0ff292f1c4b1da431361704ff4f12ae756113e968a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: uniseg3d/uniseg3d.py: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 6 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80476766a0edd5d4a00456cf760cf603cf5724fe223adbd9fe3a9f1cebc9e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): uniseg3d/uniseg3d.py:521-585 | uniseg3d/uniseg3d.py:588-653 \u2014 These two members are one piece of code written twice and then edited apart: 65 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":"uniseg3d/uniseg3d.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0e10e8b1b9bec8febb95e9249a3c8d6b3cc64bbf28c648f5077a1e0130c812"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): uniseg3d/transforms_3d.py:118-165 | uniseg3d/transforms_3d.py:180-235 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/transforms_3d.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19eba9d5113cb91bb458a0e7cb758b2a6612942eda211c1adf86c1bac7a8c80"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): uniseg3d/instance_criterion.py:115-357 | uniseg3d/instance_criterion.py:362-643 | uniseg3d/point_prompt_instance_criterion.py:68-138 | uniseg3d/point_prompt_instance_criterion.py:142-210 | uniseg3d/text_prompt_instance_criterion.py:73-143 | uniseg3d/text_prompt_instance_criterion.py:147-215 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75028e3a578a4bf3f7e079004ba53bda753127fb3adcdb879a738b1dd4aee56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): uniseg3d/uniseg3d.py:420-497 | uniseg3d/uniseg3d.py:747-888 \u2014 These two members are one piece of code written twice and then edited apart: 78 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":"uniseg3d/uniseg3d.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"f722864ce2eec444fb1875b1e3cb1855cf218d1dd3a5b59a95e68ff6bd1c8004"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): uniseg3d/query_decoder.py:288-311 | uniseg3d/query_decoder.py:505-529 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/query_decoder.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b9875d69c21bb501031a4aa4ae7f50f9d1f4484ad4b82d486a2b9501233c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): open_clip/factory.py:310-343 | open_clip/factory.py:361-387 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/factory.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"975ba6282824424d7de222baf8b69f5f3c6590b4a8f396e6032f9ea5dc6d41ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): open_clip/model.py:229-240 | uniseg3d/openclip_backbone.py:64-72 \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":"open_clip/model.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8afb2d951dc4e00f98556a8bae8339a63d89f29d95b67937150076862b3bf6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): open_clip/transformer.py:200-215 | open_clip/transformer.py:261-280 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/transformer.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e8950ccb8de81eb43b4492d2905a72ccf4fdab824df9c07a78b05183cb0c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): uniseg3d/uniseg3d.py:21-31 | uniseg3d/uniseg3d.py:42-52 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15efe0870a89a755627c0a3525569dfd98bf52538d83a2702cdc37eb2eedff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): uniseg3d/instance_criterion.py:109-112 | uniseg3d/point_prompt_instance_criterion.py:62-65 | uniseg3d/text_prompt_instance_criterion.py:67-70 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcd19dbf77447292d6ccb9e1b62462da8ba46cec80b675b4dffba59f3ef0e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): uniseg3d/point_prompt_instance_criterion.py:52-58 | uniseg3d/text_prompt_instance_criterion.py:53-63 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d405798ec306b4f71e0793228ad77324d6f2d8c38092369428ce1e4aa33809c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (120\u2013125 lines \u00D7 2): uniseg3d/instance_criterion.py:235-354 | uniseg3d/instance_criterion.py:492-616 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"73024a3f467050c5cafce605b3eaaecb06f3f7d3984879570139b82215c60df5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63\u201364 lines \u00D7 2): uniseg3d/instance_criterion.py:166-229 | uniseg3d/instance_criterion.py:431-493 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cddbc65d3a0c6e5c1675a3bc0d07bc904c621bb9b5aabc4bf9fd5274233f08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): uniseg3d/uniseg3d.py:521-573 | uniseg3d/uniseg3d.py:589-641 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"2059bba024460739eec9c482e7e79970323c236b3dc6532f908f0e4b648dea75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): uniseg3d/instance_criterion.py:133-161 | uniseg3d/instance_criterion.py:362-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2003e5cef3fca151458e16e5d0bca96d98ce8546170973d8a543982fd426464b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): uniseg3d/point_prompt_instance_criterion.py:95-117 | uniseg3d/point_prompt_instance_criterion.py:164-186 | uniseg3d/text_prompt_instance_criterion.py:100-122 | uniseg3d/text_prompt_instance_criterion.py:169-191 \u2014 before extracting anything, compare \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 and \u0060uniseg3d/text_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d833232d7cb960602e78e775dcf4cc07915ad00005f6293bee622d82dea85e3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): uniseg3d/point_prompt_instance_criterion.py:68-89 | uniseg3d/text_prompt_instance_criterion.py:73-94 \u2014 before extracting anything, compare \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 and \u0060uniseg3d/text_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060uniseg3d/point_prompt_instance_criterion.py:68\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":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95fb111c2b14907bf53dc3f9b515c5832edad256ac01dbb2f417b6f8668a729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): uniseg3d/instance_criterion.py:67-83 | uniseg3d/point_prompt_instance_criterion.py:29-45 | uniseg3d/text_prompt_instance_criterion.py:29-45 \u2014 before extracting anything, compare \u0060uniseg3d/instance_criterion.py\u0060 and \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 6 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. 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":"uniseg3d/instance_criterion.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf25c50181eda17829444416bd2830dea85fb201d018af2b3df0fe160a6e1648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): uniseg3d/point_prompt_instance_criterion.py:142-158 | uniseg3d/text_prompt_instance_criterion.py:147-163 \u2014 before extracting anything, compare \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 and \u0060uniseg3d/text_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060uniseg3d/point_prompt_instance_criterion.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. 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":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"109ec247464790a997c340bc923afb07a5136611c08fc5b325f6816be792d5aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): uniseg3d/instance_criterion.py:48-63 | uniseg3d/point_prompt_instance_criterion.py:10-25 | uniseg3d/text_prompt_instance_criterion.py:10-25 \u2014 before extracting anything, compare \u0060uniseg3d/instance_criterion.py\u0060 and \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 6 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. 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":"uniseg3d/instance_criterion.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f524914275ee43b6452696a45e348eadab84d2e53323a70af28beb31d0877b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): uniseg3d/mask_pool.py:6-21 | uniseg3d/query_decoder.py:12-27 \u2014 before extracting anything, compare \u0060uniseg3d/mask_pool.py\u0060 and \u0060uniseg3d/query_decoder.py\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/mask_pool.py"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae0badb2d071a3c6db7f784f186356710a187b9c07749a50e89e82b17f52f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): uniseg3d/query_decoder.py:288-305 | uniseg3d/query_decoder.py:505-522 \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":"uniseg3d/query_decoder.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"defe692759eabf31757ba4e896bd2c0485a57cb025e1bc0b35a38a813f5301ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): uniseg3d/instance_criterion.py:153-166 | uniseg3d/instance_criterion.py:384-397 | uniseg3d/point_prompt_instance_criterion.py:73-85 | uniseg3d/text_prompt_instance_criterion.py:78-90 \u2014 before extracting anything, compare \u0060uniseg3d/instance_criterion.py\u0060 and \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 6 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":"uniseg3d/instance_criterion.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e19d38b93bd2dd1837918cbe26daa4035c78a43d7e20a24489312593e43311e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): uniseg3d/point_prompt_instance_criterion.py:123-136 | uniseg3d/point_prompt_instance_criterion.py:191-204 \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":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a066b1ae40fbf898db24265b7b7a1c1fd7a7aa8b73c7492920e22951a482604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): uniseg3d/text_prompt_instance_criterion.py:128-141 | uniseg3d/text_prompt_instance_criterion.py:196-209 \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":"uniseg3d/text_prompt_instance_criterion.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1390eeab603b1f5b37b1300ea1a1e5b5cab93055764771587ff204767bf47554"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): uniseg3d/transforms_3d.py:118-131 | uniseg3d/transforms_3d.py:186-199 \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":"uniseg3d/transforms_3d.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a32ce44cc022f269c3d3803bae96d79ee755ef51d07ca4bb9eeae249aa2a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): uniseg3d/instance_criterion.py:256-268 | uniseg3d/instance_criterion.py:492-504 | uniseg3d/instance_criterion.py:519-531 | uniseg3d/point_prompt_instance_criterion.py:184-196 | uniseg3d/text_prompt_instance_criterion.py:189-201 \u2014 before extracting anything, compare \u0060uniseg3d/instance_criterion.py\u0060 and \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 6 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060uniseg3d/instance_criterion.py:490\u0060 calls \u0060tensor\u0060 and \u0060uniseg3d/instance_criterion.py:253\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":"uniseg3d/instance_criterion.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"90eee654ca87583ba4f8b897b8f37cd67c0edc014470f9d03d5f1a928ca551ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): uniseg3d/point_prompt_instance_criterion.py:120-132 | uniseg3d/point_prompt_instance_criterion.py:188-200 | uniseg3d/text_prompt_instance_criterion.py:125-137 | uniseg3d/text_prompt_instance_criterion.py:193-205 \u2014 before extracting anything, compare \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 and \u0060uniseg3d/text_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060uniseg3d/point_prompt_instance_criterion.py:120\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"66270eb82f5446b7279bfeb96702526c287c6905e328dd1b862e68435b5b38b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): uniseg3d/instance_criterion.py:228-240 | uniseg3d/point_prompt_instance_criterion.py:116-128 | uniseg3d/text_prompt_instance_criterion.py:121-133 \u2014 before extracting anything, compare \u0060uniseg3d/instance_criterion.py\u0060 and \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 6 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":"uniseg3d/instance_criterion.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dac6369cfcfbcdbb63c5382f1a06d458b16861c4494502250321eacc3ec228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): data/scannet/scannet_utils.py:48-62 | data/scannet/scannet_utils.py:68-82 \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":"data/scannet/scannet_utils.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb85778760cda1d4e32da6bc104f4e3ef3555f3d6ed1e128e1a1b6b7a6bf997d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): uniseg3d/spconv_unet.py:43-55 | uniseg3d/spconv_unet.py:59-71 \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 \u0060uniseg3d/spconv_unet.py:43\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":"uniseg3d/spconv_unet.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaacc1e5854318f7370c29104a2d0b0ba46968400a31c2bb37b64055e4886f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): uniseg3d/uniseg3d.py:460-488 | uniseg3d/uniseg3d.py:791-819 \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":"uniseg3d/uniseg3d.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"956c933900985bd1045c713f4f4bca454be3abd266b0e31d8e6986c20b5eeec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 6): uniseg3d/instance_criterion.py:247-257 | uniseg3d/instance_criterion.py:511-520 | uniseg3d/point_prompt_instance_criterion.py:101-112 | uniseg3d/point_prompt_instance_criterion.py:170-180 | uniseg3d/text_prompt_instance_criterion.py:106-117 | uniseg3d/text_prompt_instance_criterion.py:175-185 \u2014 before extracting anything, compare \u0060uniseg3d/instance_criterion.py\u0060 and \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 6 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. 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":"uniseg3d/instance_criterion.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"14772518da65618cc9dcfbb8681e6e54ddbf153af324ef319319b7b82177ffe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): uniseg3d/instance_criterion.py:215-224 | uniseg3d/instance_criterion.py:245-253 | uniseg3d/instance_criterion.py:480-488 | uniseg3d/instance_criterion.py:509-517 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060uniseg3d/instance_criterion.py:226\u0060 calls \u0060tensor\u0060 and \u0060uniseg3d/instance_criterion.py:256\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":"uniseg3d/instance_criterion.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2f0dc03344ff1e3eeadc4d4515b5ca4844ac0e4e07419d9859affbad922287"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): uniseg3d/transforms_3d.py:21-30 | uniseg3d/transforms_3d.py:71-80 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/transforms_3d.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d9ef48530d656e3f671627d4e771b686d2ff2875e9397a883e8c810e4aa992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): uniseg3d/instance_criterion.py:299-307 | uniseg3d/instance_criterion.py:316-324 | uniseg3d/instance_criterion.py:339-347 | uniseg3d/instance_criterion.py:562-570 | uniseg3d/instance_criterion.py:579-587 | uniseg3d/instance_criterion.py:602-610 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5693d51f579bdd8b5b3cc91c73c0c546fae2a587e9ebdfcec8f7133d50eeb78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): uniseg3d/point_prompt_instance_criterion.py:85-93 | uniseg3d/point_prompt_instance_criterion.py:154-162 | uniseg3d/text_prompt_instance_criterion.py:90-98 | uniseg3d/text_prompt_instance_criterion.py:159-167 \u2014 before extracting anything, compare \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 and \u0060uniseg3d/text_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0990e53295c115df1f0155d914b4d65735295cd75adab3cbbcaa7e75527ee99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): uniseg3d/point_prompt_instance_criterion.py:202-210 | uniseg3d/text_prompt_instance_criterion.py:207-215 \u2014 before extracting anything, compare \u0060uniseg3d/point_prompt_instance_criterion.py\u0060 and \u0060uniseg3d/text_prompt_instance_criterion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060uniseg3d/point_prompt_instance_criterion.py:202\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":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e864c497f64baa29faf1536dbe17c6e3de20ae9b7ff1a54fc62ce055ae2a165c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): uniseg3d/query_decoder.py:277-284 | uniseg3d/query_decoder.py:493-500 \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":"uniseg3d/query_decoder.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ecc2f929d200063a1a653825f3a1d024bc5551c386ee57414408f885cd17ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): open_clip/transformer.py:563-569 | open_clip/transformer.py:677-683 \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":"open_clip/transformer.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af4895ce2e3ef6054235560b024bbe350288e311c51c121b6b74ac83529c0c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): uniseg3d/uniseg3d.py:581-585 | uniseg3d/uniseg3d.py:649-653 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa9e239f588e1803075c6f9be4f0188bc09c54c5340d78285f72ca5fdc4983b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): tools/test.py:16-68 | tools/train.py:18-62 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/test.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"642428fe0f69163c0aa14b0f0bd89cb39b8291cb235075634de65bbd68542fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67\u201375 lines \u00D7 2): tools/update_infos_to_v2.py:191-265 | tools/update_infos_to_v2.py:315-381 \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 \u0060tools/update_infos_to_v2.py:315\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":"tools/update_infos_to_v2.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee3b925f6590bb7faccb9dc8b91eabbe116145f8e51214ac1e2b200f3b18a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): tools/test.py:101-121 | tools/train.py:66-86 \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":"tools/test.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"77723fa53a50b6264421412683f4bbec9995d977e09d03af58ed349c83088c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tools/test.py:44-59 | tools/train.py:40-54 \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 \u0060tools/test.py:44\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":"tools/test.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"887e2ba4f18470e1fe336a5592920bc5468a3564ff95231115f6d345981478b9"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: open_clip: open_clip: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1c2023371e656cdbc2aaebbe79fa999091f744728fd1af2b2020952ea751a5c7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/__init__.py: 0.0% line coverage (0/13)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6df9191fd7b1cc408e6b9d442cddc7212ae9c3544aa86e22f66a5ac617d469"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/coca_model.py: 0.0% line coverage (0/191)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/coca_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab0be861a18df5f3290e9d7a4516a0125126164f8316fddead5260c76883cc7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/constants.py: 0.0% line coverage (0/2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/constants.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b9d466336c4a16f5a547a69645ddba12956df09915867b0bdc72eabec6d56c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/factory.py: 0.0% line coverage (0/178)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/factory.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1342b404bfdbd15482ead05776764bdd8f5c5f18d02fb67e7edfb920b09f27ca"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/hf_configs.py: 0.0% line coverage (0/1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/hf_configs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f246a68fff98bea0915c7030d970f702017595b61470b27cf2cd33be97ff1c56"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/hf_model.py: 0.0% line coverage (0/107)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/hf_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cc2f7814aa8da93ffd87ac4fc47990103624ca4439169cc67181951233acd0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/loss.py: 0.0% line coverage (0/109)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/loss.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b735d0d06bc61629eba7883bc1ddd3e1a502e3c311d51ab1def4b2785af6f61f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/model.py: 0.0% line coverage (0/247)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"854f465103afd371f4bc22aa157fd8571cf3f6e945c71c9f1360d39d7bb64c20"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/modified_resnet.py: 0.0% line coverage (0/112)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/modified_resnet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d106b546016df6e72caa8cecd992c585ff20f1d6fa3af822bca0d9e6e6257d0e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/openai.py: 0.0% line coverage (0/39)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/openai.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64267719baaa4cca871dfe7927128a1a871424260edae98c191d6d127aafca75"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/pretrained.py: 0.0% line coverage (0/128)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/pretrained.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aba9392686b40cce8fb29c6cc38178ba116abb535e54ed952e4018ba933d1dc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/push_to_hf_hub.py: 0.0% line coverage (0/128)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/push_to_hf_hub.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb1410d6df5fdde37260987a3371f628dce04300ed10653f4c3524cbc323144"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/timm_model.py: 0.0% line coverage (0/86)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/timm_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cbbb0ed2f2326d6a5298ee81e4046b48992af8423f77e1a58868341608bd3c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/tokenizer.py: 0.0% line coverage (0/138)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/tokenizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c52912cb125ac571d9c713a4d799c7068bb84817ee6011ae9a66e83d1d1f2cf"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/transform.py: 0.0% line coverage (0/74)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/transform.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bc4a470979909cd10e81e5b2865640d9be268f426ff2e83d726f8d27f4b99f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/transformer.py: 0.0% line coverage (0/382)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/transformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98955c4a4f92bdfc8bdcb867df58add583823f0d4613fb8a35350b9668422b91"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/utils.py: 0.0% line coverage (0/55)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e771231e66298bdd47a56d41171a40e20aa629f7190364665cb1ea5a5f88fcb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/version.py: 0.0% line coverage (0/1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/version.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87148ed57cde3d16b2ef6966b57fb20bef39610a6f0b81c625492deb085cd14e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/zero_shot_classifier.py: 0.0% line coverage (0/57)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/zero_shot_classifier.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e472481dc6815f8eae08abc81c863f55265cd30bdaa8c8974be9def6526f19c9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: open_clip/zero_shot_metadata.py: 0.0% line coverage (0/3)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/zero_shot_metadata.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21061c3999aae5565f20205fd5e72d44d0a4111481749d49d82eae7c1b161492"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/__init__.py: 0.0% line coverage (0/18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05f9dcf331b456090102992ea6b036cc4c75289b3d263fb15848802e28afc7b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/contrastive_criterion.py: 0.0% line coverage (0/96)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/contrastive_criterion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68496ebb45a83c321b56f858602860aae367d0c12d835f5f29dfe5406d87205"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/data_preprocessor.py: 0.0% line coverage (0/58)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/data_preprocessor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b26f3571e71dad25aef2e83856b3facb719e4884f83fb124b1873e522bdeb3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/evaluate_semantic_instance.py: 0.0% line coverage (0/205)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/evaluate_semantic_instance.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb3a47ce9305c86194a1f0e4da266fac222a714c64c751aad060aebebbe0a19"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/formatting.py: 0.0% line coverage (0/76)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/formatting.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1bb9c4dcd93efd80b3b57e6c8df8ed6df31db4d9f846576dd5be87607164d3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/instance_criterion.py: 0.0% line coverage (0/448)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c8e82fe9583ad73d5912312267f73765cf2f4d75f30373773e8bc35d215af6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/instance_seg_eval.py: 0.0% line coverage (0/49)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_seg_eval.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e432a118c6c2700418932bdeba2985b6e280ab5b9842d91275e96bc6f7f794db"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/lang_module.py: 0.0% line coverage (0/45)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/lang_module.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f4cbd4c1a2fe9ad87a76e7933b98eb1165c7070d57990bbb884f477d6a0393"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/loading.py: 0.0% line coverage (0/43)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/loading.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e377de67026fd2cad6758d6e09fde8503e8ddc587737d739b92ada2e5d537b07"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/mask_matrix_nms.py: 0.0% line coverage (0/53)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/mask_matrix_nms.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9028fb2cdaa8d5e78cf9dd30d71fbf9fd2b74194ca623da20c89066ae6b9dfae"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/mask_pool.py: 0.0% line coverage (0/9)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/mask_pool.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c85f2aa3ebd1bab10343788a534f9d02fc34a6ca344c1ec8d27213ed5f024d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/openclip_backbone.py: 0.0% line coverage (0/48)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/openclip_backbone.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36268dd35eba3c593e891336ca45700644ef567ec1f856908ef3b2d261943f86"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/point_prompt_instance_criterion.py: 0.0% line coverage (0/123)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e365a5c7947cddf095b5680f6260c94cf46c3d0c11de3e9fe85960c0a0e0d4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/query_decoder.py: 0.0% line coverage (0/259)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/query_decoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecc75ff6c9a40b05f1bb774d7591b57a7f336a19b65738c9d1042c5aeb66164"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/scannet_dataset.py: 0.0% line coverage (0/13)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/scannet_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6859e8afa04ceb1336486625a836765e7a00b21d4d66f1f381ea31716c433526"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/semantic_criterion.py: 0.0% line coverage (0/16)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/semantic_criterion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc37077cc20aee9bd434da1d6df6aebfdf64a77192ffd8dc6fe1e75d629cbb0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/spconv_unet.py: 0.0% line coverage (0/65)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/spconv_unet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39335e7b305ffc9ba0669f259fd9f152cda1dd7e0f90594f393da207f3aefe5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/structures.py: 0.0% line coverage (0/10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/structures.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ede1f4850d3a6211b2166ba19654d444eac26d62c6550e815cba40ac5bb0c9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/text_prompt_instance_criterion.py: 0.0% line coverage (0/126)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/text_prompt_instance_criterion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd31c1e717e04892ec1363e613ffcfede6431aaf8a64f20180971b3faa5a1eec"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/transforms_3d.py: 0.0% line coverage (0/284)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/transforms_3d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af64b22c3a30aa91069dfa28af9e1bf44dd2142d6ed13d1dee4d69cf80bef1ec"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/unified_criterion.py: 0.0% line coverage (0/58)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/unified_criterion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a360c57fb0d1d409e4b0f02c58ec878f77240a020716954556431c1e8617e28"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/unified_metric.py: 0.0% line coverage (0/161)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/unified_metric.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f02f188a3dcbe206f334de8df1552038743a37ee12e46ccb31dc15eba3aeca9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: uniseg3d/uniseg3d.py: 0.0% line coverage (0/450)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d971e162adebacd050d7740e69d21106939415d0e6ed24564ea76e6dee1cd88d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: refactor pred to InstanceData_ \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/instance_criterion.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4c8ec055db410c4d55a6ca9fe66523395e92cbeb73bbce62dd9ace18f90f8d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: refactor pred to InstanceData_ \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"347f9956e20d4fbf7d81e18507301e6afe63ade6b86c8f6518b212a42e41f7eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: refactor pred to InstanceData_ \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/text_prompt_instance_criterion.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89c2523e9e86bd27103f427c143e1587c755d2f6e79cb689321040cc721be10"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: actually .mean() should be better \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8fc473f0e2171eac54cf2c21163d1e2ed5425404c49d93e08ed81a4e080960"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: actually .mean() should be better \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/point_prompt_instance_criterion.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b358f3aed3c43db3a6d101a3c08ecdb8211f30ffc862dc06687f1f33049bd8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: actually .mean() should be better \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/text_prompt_instance_criterion.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe1cec7c42f51eeb23267d82432e2c6c8aaeb90325d7f81d2df9e27a5fab53d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: actually .mean() should be better \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/text_prompt_instance_criterion.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e06d1768bbd2b18da9461f5c2520d1b12b0d2f2959ef012ef4627759bca37e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: why BaseModule doesn\u0027t call it without us? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/query_decoder.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"42598926939484c6ebf7c936a41c542d42ffddf60de5e9a40266a7b6ee7aced9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # save_path = \u0027your_save_folder_path_here\u0027  # TODO: Replace with your save folder path \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uniseg3d/uniseg3d.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"54959ee277c8b7ae29d6c01a5813b6838e4c0ee8f18fc82981686c28926411ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support fuse_conv_bn and format_only \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/test.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b19f435cc980d74ef2235321b285424dd4fe5d418ad17ddf14036056452562"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We will unify the ceph support approach with other OpenMMLab repos \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/test.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d0787068cb049b6a462e0af9dd618b8f91d23b25eba6612345b7f2c68c59b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We will unify the ceph support approach with other OpenMMLab repos \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/train.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c248b455e9112a1462535984f6edf48fda78d4473b3a1ae1ddba0f27c98e0616"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Support tta for 3D detection \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/test.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"074cee2734987cd1873ec06bc95df8478abf138fd0f5d3074ce433a054f0aec7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO support camera \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/update_infos_to_v2.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f414d59184a602a72bf38ec4454863a9c2770f6592a47dddb519202a36d512"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO support camera \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/update_infos_to_v2.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b8c4604f3689cf312a03d24d109fc7e2bf0112c843462ebbff06642ea30954"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add assertion to avoid bugs? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/coca_model.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec59d38cd2e53f61c501778b4447708a18e7d6171eddf0dc3da71fc94b0ea3e3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME this is a bit janky, create timm based model in low-precision and \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/factory.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"32077436c4b9d2374f83c78ad73f6bfb4042c7034d134f294b4e3d0dc1b4208a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: ?last - for gpt-like models \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/hf_model.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9071da39aae40ab40044a30d79f2ce299ede52cdcd51e7c4126760c5c743d079"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: find better way to get this information \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/hf_model.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb038ed51c183fd5b851324f843cd30f4f6b0468fdf5f18f62b35b4d744e5a09"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: do all model configs have this attribute? PretrainedConfig does so yes?? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/hf_model.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f140d6548138606096d2f26589297e8745f003f08a78f934f77334d655014ce"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME downstream users of OpenCLIP models use these attr, need to verify valid across all models \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/hf_model.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b265a5f92ef218e268d9ba2f4d9368c75abe1e785ced48df15669c3d4874265"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME detect different token configs (ie no class token, or more) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/model.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb9bfe46253e8f184c01baa09a08a2451d04fe6853120f387b26c4690e91eac"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME support for non-transformer \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/modified_resnet.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"47969612cce8977692652a9550ee2cf949a4bfb86e8d374edd19adfba86a626f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME support pure fp16/bf16 precision modes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/openai.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"690b57a7397b697aeee93de4bb42bbc1fd5fb672b86d6c7df3317c671c5da1de"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME add support to pass model_card json / template from file via cmd line \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/push_to_hf_hub.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc488017da84d5871ce01659048fd0fc2822d309a25ba8c3f1a7accb41388453"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME import here until API stable and in an official release \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/timm_model.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d77eb37727a88ddb8d2c2618bd659c6a0d8d43e57b3a4e632e91352a16ca49"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: handle kwargs https://github.com/pytorch/pytorch/issues/79887#issuecomment-1161758372"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/transformer.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fa17568a803a038c83e531a80aa3c837afd2c17d4451aa6f31dcdf00c2d2d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: handle kwargs https://github.com/pytorch/pytorch/issues/79887#issuecomment-1161758372"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/transformer.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eba2ecd1702b04f56ec11c855b06323b8289020fb246756f02aaeb979923902"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME OpenAI CLIP did not define an init for the VisualTransformer \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/transformer.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65d1b88e6a4759fe6cd7fea3b523c0873d1b3c46419ad652a74896a3221b6c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO experiment if default PyTorch init, below, or alternate init is best. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/transformer.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbff7064efeaeac26a998928c9e200691e4a2b4d605ab31e8f5f0de96b9c5db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add int8 support for other linear layers including attn and convnets \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/utils.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e97d1be081b12d1f44938611ba794bf1f06be48668990f493bee7298db3bfb"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 77 % of calls cross a namespace and only 50 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b56a92dd78db1b20c44bf51d6a928c4fff35b7a49d4225cf2b0e91665c0b771c"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21f8f18ea22eb16aa3492b2612018510edc537502dd5f796068f67681ebe2f61"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"827155f748092a507e258c01e68a8bb4eeaa2f6d8b2e34016659ab9c7791ebfe"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e76542f8db46f673723740749a12057f760a1035e885f7bd1ebe36348b7a11fb"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d751fcd139de8e4291fac0a6b533d25b18dece2a05622744f253f2f6dacc9685"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"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":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 145 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/factory.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bae34d69fbfbeb494ed112fe4f958bb362e3a0cade0b95d7bdeb999025d550f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 155 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/factory.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8550df98164c8de4ff1de8de30586c892fcb90b05d9c511bbe5fb54795774fdd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 157 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/factory.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"489f3d7f52511264e60caebd2b857ecf883e277e92ab840580c4d08e7fa2c809"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 228 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/factory.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6323260cfcabbec980ffb2683582836f963d4cbd9d900117985c57c2351c56d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 238 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open_clip/factory.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fb2d28cd3a206244a9bbfe39f2c7f6389700963c9731f04fed3641d7b2e188"}}],"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-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":5,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}