aws-samples / aws-do-eks
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 40% duplication:
    • 3,732 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,519 duplicated lines
  • 353 duplicates
system40% (1,519 lines)
Duplication per Extension
yaml40% (1,519 lines)
Duplication per Component (primary)
Container-Root/eks/deployment/nginx-ingress-controller54% (356 lines)
Container-Root/eks/deployment/efa-device-plugin79% (275 lines)
Container-Root/eks/deployment/kubeflow70% (156 lines)
wd/conf93% (147 lines)
Container-Root/eks/deployment/aws-load-balancer-controller25% (144 lines)
Container-Root/eks/deployment/fsx-csi52% (114 lines)
Container-Root/eks/deployment/torch-elastic30% (102 lines)
Container-Root/eks100% (61 lines)
Container-Root/eks/deployment/efs-csi32% (51 lines)
Container-Root/eks/deployment/aws-vpc-cni8% (39 lines)
Container-Root/eks/deployment/cluster-autoscaler14% (24 lines)
Container-Root/eks/ops/templates18% (15 lines)
Container-Root/eks/deployment/aws-virtual-gpu-device-plugin23% (14 lines)
Container-Root/eks/deployment/horizontal-pod-autoscaler8% (9 lines)
Container-Root/eks/ops/setup33% (6 lines)
Container-Root/eks/deployment/kubernetes-dashboard33% (6 lines)
Container-Root/eks/deployment/nvidia-device-plugin0% (0 lines)

Duplication Between Components (50+ lines)

G Container-Root/eks/deployment/efa-device-plugin Container-Root/eks/deployment/efa-device-plugin Container-Root/eks/deployment/kubeflow Container-Root/eks/deployment/kubeflow Container-Root/eks/deployment/efa-device-plugin--Container-Root/eks/deployment/kubeflow 343 Container-Root/eks Container-Root/eks wd/conf wd/conf Container-Root/eks--wd/conf 205 Container-Root/eks/deployment/aws-load-balancer-controller Container-Root/eks/deployment/aws-load-balancer-controller Container-Root/eks/deployment/torch-elastic Container-Root/eks/deployment/torch-elastic Container-Root/eks/deployment/aws-load-balancer-controller--Container-Root/eks/deployment/torch-elastic 120 Container-Root/eks/deployment/nginx-ingress-controller Container-Root/eks/deployment/nginx-ingress-controller Container-Root/eks/deployment/aws-load-balancer-controller--Container-Root/eks/deployment/nginx-ingress-controller 89

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 353 duplicates...
Size#FoldersFilesLinesCode
63 x 2 Container-Root/eks/deployment/efa-device-plugin
Container-Root/eks/deplo...t/kubeflow/mpi-operator
test-efa.yaml
efa-info-test.yaml
1:63 (75%)
1:63 (76%)
view
61 x 2 Container-Root/eks
wd/conf
eks.yaml
eks.yaml
1:66 (100%)
1:66 (100%)
view
32 x 2 Container-Root/eks/deployment/efa-device-plugin
Container-Root/eks/deployment/efa-device-plugin
test-efa-nccl.yaml
test-nccl.yaml
43:78 (34%)
43:78 (35%)
view
24 x 2 wd/conf
wd/conf
eks-ami-example.yaml
eks.yaml
1:29 (25%)
1:29 (39%)
view
24 x 2 Container-Root/eks
wd/conf
eks.yaml
eks-ami-example.yaml
1:29 (39%)
1:29 (25%)
view
24 x 2 Container-Root/eks/deployment/efa-device-plugin
Container-Root/eks/deployment/efa-device-plugin
test-efa-nccl.yaml
test-nccl.yaml
18:41 (25%)
18:41 (26%)
view
23 x 2 Container-Root/eks/deployment/efa-device-plugin
Container-Root/eks/deplo...t/kubeflow/mpi-operator
test-efa.yaml
nccl-tests.yaml
29:51 (27%)
29:51 (26%)
view
23 x 2 Container-Root/eks/deplo...t/kubeflow/mpi-operator
Container-Root/eks/deplo...t/kubeflow/mpi-operator
efa-info-test.yaml
nccl-tests.yaml
29:51 (28%)
29:51 (26%)
view
20 x 2 Container-Root/eks/deplo...rch-elastic/config/rbac
Container-Root/eks/deplo...rch-elastic/config/rbac
elasticjob_editor_role.yaml
role.yaml
7:26 (80%)
45:64 (31%)
view
19 x 2 Container-Root/eks/deployment/efa-device-plugin
Container-Root/eks/deplo...t/kubeflow/mpi-operator
test-efa.yaml
efa-info-test.yaml
66:84 (22%)
64:82 (23%)
view
18 x 2 Container-Root/eks/deployment/efa-device-plugin
Container-Root/eks/deplo...t/kubeflow/mpi-operator
test-nccl.yaml
nccl-tests.yaml
49:66 (19%)
57:74 (20%)
view
18 x 2 Container-Root/eks/deplo...ginx-ingress-controller
Container-Root/eks/deplo...ginx-ingress-controller
nginx-ingress-controller.yaml
nginx-ingress-controller.yaml
69:86 (2%)
160:177 (2%)
view
18 x 2 Container-Root/eks/deployment/efa-device-plugin
Container-Root/eks/deplo...t/kubeflow/mpi-operator
test-efa-nccl.yaml
nccl-tests.yaml
49:66 (19%)
57:74 (20%)
view
17 x 2 Container-Root/eks
wd/conf
eks.yaml
eks-ami-example.yaml
50:66 (27%)
78:94 (17%)
view
17 x 2 wd/conf
wd/conf
eks-ami-example.yaml
eks.yaml
78:94 (17%)
50:66 (27%)
view
15 x 2 Container-Root/eks/deployment/efa-device-plugin
Container-Root/eks/deplo...t/kubeflow/mpi-operator
test-efa-nccl.yaml
nccl-tests.yaml
23:37 (16%)
29:43 (17%)
view
15 x 2 wd/conf
wd/conf
eks-ami-example.yaml
eks-ami-example.yaml
26:40 (15%)
88:102 (15%)
view
15 x 2 wd/conf
wd/conf
eks-ami-example.yaml
eks-ami-example.yaml
70:84 (15%)
88:102 (15%)
view
15 x 2 Container-Root/eks/deplo...ginx-ingress-controller
Container-Root/eks/deplo...ginx-ingress-controller
nginx-ingress-controller.yaml
nginx-ingress-controller.yaml
93:107 (2%)
177:191 (2%)
view
15 x 2 Container-Root/eks/deployment/efa-device-plugin
Container-Root/eks/deployment/efa-device-plugin
test-efa-nccl.yaml
test-efa.yaml
23:37 (16%)
29:43 (17%)
view