aws-samples / opensource-4g-core-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
  • 88% duplication:
    • 5,187 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,584 duplicated lines
  • 106 duplicates
system88% (4,584 lines)
Duplication per Extension
yaml88% (4,584 lines)
Duplication per Component (primary)
x86-Architecture/cfn-templates90% (1,325 lines)
Arm-Architecture/cfn-templates95% (1,325 lines)
x86-Architecture/templates99% (763 lines)
Arm-Architecture/templates99% (763 lines)
x86-Architecture/controllers100% (101 lines)
Arm-Architecture/controllers100% (101 lines)
x86-Architecture/multus-networks100% (57 lines)
Arm-Architecture/multus-networks100% (57 lines)
x86-Architecture100% (34 lines)
Arm-Architecture100% (34 lines)
srsLTE/k8s-manifests5% (24 lines)

Duplication Between Components (50+ lines)

G Arm-Architecture/cfn-templates Arm-Architecture/cfn-templates x86-Architecture/cfn-templates x86-Architecture/cfn-templates Arm-Architecture/cfn-templates--x86-Architecture/cfn-templates 2650 Arm-Architecture/templates Arm-Architecture/templates x86-Architecture/templates x86-Architecture/templates Arm-Architecture/templates--x86-Architecture/templates 1470 Arm-Architecture/controllers Arm-Architecture/controllers x86-Architecture/controllers x86-Architecture/controllers Arm-Architecture/controllers--x86-Architecture/controllers 202 Arm-Architecture/multus-networks Arm-Architecture/multus-networks x86-Architecture/multus-networks x86-Architecture/multus-networks Arm-Architecture/multus-networks--x86-Architecture/multus-networks 114 Arm-Architecture Arm-Architecture x86-Architecture x86-Architecture Arm-Architecture--x86-Architecture 68

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 106 duplicates...
Size#FoldersFilesLinesCode
719 x 2 Arm-Architecture/cfn-templates
x86-Architecture/cfn-templates
open5gs-infra.yaml
open5gs-infra.yaml
1:753 (100%)
1:753 (100%)
view
514 x 2 Arm-Architecture/cfn-templates
x86-Architecture/cfn-templates
open5gs-worker-arm.yaml
open5gs-worker-x86.yaml
156:716 (77%)
242:802 (68%)
view
92 x 2 Arm-Architecture/cfn-templates
x86-Architecture/cfn-templates
open5gs-worker-arm.yaml
open5gs-worker-x86.yaml
5:98 (13%)
5:98 (12%)
view
67 x 2 Arm-Architecture/templates
x86-Architecture/templates
pcrf-deploy.yaml
pcrf-deploy.yaml
1:67 (100%)
1:67 (100%)
view
66 x 2 Arm-Architecture/templates
x86-Architecture/templates
hss-deploy.yaml
hss-deploy.yaml
1:66 (100%)
1:66 (100%)
view
65 x 2 Arm-Architecture/templates
x86-Architecture/templates
mme-deploy.yaml
mme-deploy.yaml
1:65 (100%)
1:65 (100%)
view
64 x 2 Arm-Architecture/templates
x86-Architecture/templates
smf-deploy.yaml
smf-deploy.yaml
1:64 (100%)
1:64 (100%)
view
54 x 2 Arm-Architecture/templates
x86-Architecture/templates
upf-deploy.yaml
upf-deploy.yaml
1:54 (100%)
1:54 (100%)
view
53 x 2 Arm-Architecture/templates
x86-Architecture/templates
web-ui-deploy.yaml
web-ui-deploy.yaml
1:53 (100%)
1:53 (100%)
view
46 x 2 Arm-Architecture/templates
x86-Architecture/templates
nrf-deploy.yaml
nrf-deploy.yaml
1:46 (100%)
1:46 (100%)
view
45 x 2 Arm-Architecture/templates
x86-Architecture/templates
sgw-c-deploy.yaml
sgw-c-deploy.yaml
1:45 (100%)
1:45 (100%)
view
41 x 2 Arm-Architecture/templates
x86-Architecture/templates
sgw-u-deploy.yaml
sgw-u-deploy.yaml
1:41 (100%)
1:41 (100%)
view
40 x 2 Arm-Architecture/templates
x86-Architecture/templates
mme-configmap.yaml
mme-configmap.yaml
1:43 (100%)
1:43 (100%)
view
39 x 2 Arm-Architecture/templates
x86-Architecture/templates
smf-configmap.yaml
smf-configmap.yaml
1:43 (100%)
1:43 (100%)
view
31 x 2 Arm-Architecture/controllers/rbac
x86-Architecture/controllers/rbac
aws-secondary-int-controller-rbac.yaml
aws-secondary-int-controller-rbac.yaml
1:33 (100%)
1:33 (100%)
view
28 x 2 Arm-Architecture/controllers/rbac
x86-Architecture/controllers/rbac
svc-watcher-route53-rbac.yaml
svc-watcher-route53-rbac.yaml
1:30 (100%)
1:30 (100%)
view
28 x 2 Arm-Architecture
x86-Architecture
values.yaml
values.yaml
5:41 (100%)
5:41 (100%)
view
22 x 2 Arm-Architecture/templates
x86-Architecture/templates
sgw-c-configmap.yaml
sgw-c-configmap.yaml
1:25 (100%)
1:25 (100%)
view
21 x 2 Arm-Architecture/controllers/deployments
x86-Architecture/controllers/deployments
aws-secondary-int-controller-deployme...
aws-secondary-int-controller-deployme...
1:21 (100%)
1:21 (100%)
view
21 x 2 Arm-Architecture/cfn-templates
Arm-Architecture/cfn-templates
open5gs-worker-arm.yaml
open5gs-worker-arm.yaml
396:417 (3%)
429:450 (3%)
view