dsx-ai-factory/nvke
NVIDIA Kubernetes Engine (NVKE). A management plane for GPU Kubernetes on bare metal.
The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
Most complex files
- agent/pkg/agent/proto/node_agent.pb.go2451 cx
- controller/api/client.gen.go694 cx
- cli/internal/bootstrap/controllerdeploy/controllerdeploy_test.go580 cx
- cli/internal/nvkectl/bootstrap_test.go514 cx
- controller/nico-sim/ui/app.js452 cx
- cli/internal/bootstrap/sitespec/sitespec_test.go443 cx
- agent/pkg/agent/proto/node_agent_grpc.pb.go432 cx
- cli/internal/deploypath/deploypath_test.go417 cx
- hack/rotation-demo/test_demo.py411 cx
- controller/internal/server/clusters.go393 cx
Dead code 12.15% unused · 1 findings
- controller/nico-sim/ui/app.jsunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 12 generated files: agent/pkg/agent/proto/node_agent_grpc.pb.go, agent/pkg/agent/proto/node_agent.pb.go, cluster-api-provider-provisioned/api/v1alpha1/zz_generated.deepcopy.go, controller/api/client.gen.go, controller/api/models.gen.go, controller/api/prepend-license.go, controller/api/server.gen.go, management-engine/apis/v1/zz_generated.deepcopy.go, management-engine/apis/v1/zz_generated.public.go, management-engine/cmd/public-gen/emission.go, management-engine/cmd/public-gen/testdata/zz_generated.deepcopy.go, management-engine/pkg/publicapi/zz_generated.registrations.go.
Largest clones in the code
- 12 lines in 12 placesgo69 tokenscontroller/internal/clients/controlplaneconfignodeprovider.go:32–43controller/internal/clients/controlplaneconfigpayloadvalidator.go:30–41controller/internal/clients/machine.go:50–61controller/internal/clients/newnodeprovider.go:43–54controller/internal/clients/nodeagentprofilevalidator.go:29–40and 7 more
32func GetControlPlaneConfigNodeProvider(cluster db.Cluster) (ControlPlaneConfigNodeProvider, error) { 33 switch cluster.ProviderType { 34 case db.ProviderTypeCAPI: 35 return capi.New(), nil 36 case db.ProviderTypeNico: 37 return nico.New(), nil 38 case db.ProviderTypeLaunchLayer: 39 return launchlayer.New(), nil 40 default: 41 return nil, fmt.Errorf("unsupported provider type %q for cluster %s", cluster.ProviderType, cluster.ID)First 10 of 12 lines.
- 8 lines in 6 placesgo75 tokenscontroller/nico-sim/internal/state/queries_static.go:126–133controller/nico-sim/internal/state/queries_static.go:141–148controller/nico-sim/internal/state/queries_static.go:156–163controller/nico-sim/internal/state/queries_static.go:202–209controller/nico-sim/internal/state/queries_static.go:217–224and 1 more
126if err := s.db.NewSelect(). 127 Model(&rows). 128 Where("site_id = ?", siteID). 129 Order("id ASC"). 130 Limit(int64(page.Size)). 131 Offset(int64((page.Number - 1) * page.Size)). 132 Scan(ctx); err != nil { 133 return nil, fmt.Errorf("failed to list vpcs: %w", err)141if err := s.db.NewSelect(). 142 Model(&rows). 143 Where("site_id = ?", siteID). 144 Order("id ASC"). 145 Limit(int64(page.Size)). 146 Offset(int64((page.Number - 1) * page.Size)). 147 Scan(ctx); err != nil { 148 return nil, fmt.Errorf("failed to list subnets: %w", err) - 6 lines in 6 placesgo63 tokenscontroller/internal/temporal/activities/certificate_renewal.go:469–474controller/internal/temporal/activities/enable_etcd_encryption.go:346–351controller/internal/temporal/activities/etcd_encryption_key_rotation.go:38–43controller/internal/temporal/activities/mark_oidc_enabled.go:34–39controller/internal/temporal/activities/mark_oidc_enabled.go:89–94and 1 more
469) (FailCertificateRenewalResult, error) { 470 err := a.db.RunInTx(ctx, func(ctx context.Context, tx db.Tx) error { 471 cluster, err := tx.GetClusterForUpdate(ctx, input.ClusterID) 472 if err != nil { 473 if errors.Is(err, db.ErrNotFound) { 474 return nil346) (ClearEtcdEncryptionUpdateInProgressResult, error) { 347 err := a.db.RunInTx(ctx, func(ctx context.Context, tx db.Tx) error { 348 cluster, err := tx.GetClusterForUpdate(ctx, input.ClusterID) 349 if err != nil { 350 if errors.Is(err, db.ErrNotFound) { 351 return temporal.NewNonRetryableApplicationError("cluster not found in database", "db.ErrNotFound", err)
7 more
- 13 lines in 4 placesgo103 tokenscontroller/internal/controllers/dbreconcile/dbwrapper/cluster_source.go:62–74controller/internal/controllers/dbreconcile/dbwrapper/node_pool_source.go:62–74controller/internal/controllers/dbreconcile/dbwrapper/node_set_source.go:62–74controller/internal/controllers/dbreconcile/dbwrapper/node_source.go:62–74
- 45 lines in 2 placesgo305 tokens
- 12 lines in 4 placesgo87 tokenscontroller/internal/controllers/dbreconcile/dbwrapper/cluster_source.go:86–97controller/internal/controllers/dbreconcile/dbwrapper/node_pool_source.go:86–97controller/internal/controllers/dbreconcile/dbwrapper/node_set_source.go:86–97controller/internal/controllers/dbreconcile/dbwrapper/node_source.go:86–97
- 8 lines in 4 placesgo80 tokens
- 29 lines in 2 placesgo238 tokens
- 10 lines in 4 placesgo71 tokens
- 10 lines in 4 placesgo70 tokenscontroller/internal/controllers/dbreconcile/dbwrapper/cluster_source.go:122–131controller/internal/controllers/dbreconcile/dbwrapper/node_pool_source.go:122–131controller/internal/controllers/dbreconcile/dbwrapper/node_set_source.go:122–131controller/internal/controllers/dbreconcile/dbwrapper/node_source.go:122–131
Largest clones over all files, tests and data included
- 2369 lines in 2 placestextdocs and examples31,343 tokens
10606 Unless required by applicable law or agreed to in writing, software 10607 distributed under the License is distributed on an "AS IS" BASIS, 10608 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10609 See the License for the specific language governing permissions and 10610 limitations under the License. 10611 10612``` 10613 10614### k8s.io/apimachinery/third_party/forked/golang 10615First 10 of 2369 lines.
- 3271 lines in 2 placestextdocs and examples28,460 tokens
1109 incurred by, or claims asserted against, such Contributor by reason 1110 of your accepting any such warranty or additional liability. 1111 1112END OF TERMS AND CONDITIONS 1113 1114APPENDIX: How to apply the Apache License to your work. 1115 1116 To apply the Apache License to your work, attach the following 1117 boilerplate notice, with the fields enclosed by brackets "{}" 1118 replaced with your own identifying information. (Don't includeFirst 10 of 3271 lines.
- 214 lines in 11 placestextdocs and examples1,897 tokensagent/THIRD_PARTY_NOTICES.md:1133–1346agent/THIRD_PARTY_NOTICES.md:1342–1557agent/THIRD_PARTY_NOTICES.md:1598–1814agent/THIRD_PARTY_NOTICES.md:4165–4379agent/THIRD_PARTY_NOTICES.md:4621–4836and 6 more
1133 Unless required by applicable law or agreed to in writing, software 1134 distributed under the License is distributed on an "AS IS" BASIS, 1135 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1136 See the License for the specific language governing permissions and 1137 limitations under the License. 1138 1139``` 1140 1141### github.com/go-logr/stdr 11421342 Unless required by applicable law or agreed to in writing, software 1343 distributed under the License is distributed on an "AS IS" BASIS, 1344 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1345 See the License for the specific language governing permissions and 1346 limitations under the License. 1347 1348``` 1349 1350### github.com/go-openapi/jsonpointer 1351First 10 of 214 lines, the second copy on the right.
- 425 lines in 6 placestextdocs and examples3,745 tokens
- 987 lines in 3 placestextdocs and examples9,111 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| go | 737 | 146,003 | 284 | 2,994 | 2.05% |
| bash | 191 | 34,883 | 29 | 455 | 1.3% |
| javascript | 1 | 1,510 | 4 | 41 | 2.72% |
| python | 15 | 4,164 | 1 | 12 | 0.29% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| go | 1,685 | 409,411 | 2,417 | 24,227 | 5.92% |
| yaml | 608 | 76,802 | 1,038 | 32,148 | 41.86% |
| json | 57 | 28,064 | 376 | 13,907 | 49.55% |
| text | 66 | 22,333 | 188 | 21,462 | 96.1% |
| markup | 11 | 19,225 | 115 | 6,032 | 31.38% |
| markdown | 259 | 70,442 | 86 | 1,517 | 2.15% |
| go-module | 13 | 1,008 | 38 | 362 | 35.91% |
| bash | 278 | 42,253 | 37 | 523 | 1.24% |
| python | 31 | 10,914 | 21 | 165 | 1.51% |
| makefile | 29 | 5,675 | 17 | 178 | 3.14% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 8, 2026 | #10 | 604 (+123) | 3,082 | 693,672 | 4,345 | 14.51% | 1.88% | C 55.8 | 92c39b8 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.