azure / azure-container-networking
Duplication

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

Intro
Learn more...
Duplication Overall
system13% (6,603 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
go9% (4,341 lines)
yaml53% (2,206 lines)
c42% (28 lines)
py17% (16 lines)
ps12% (12 lines)
Duplication per Component (primary)
npm21% (3,298 lines)
cns8% (1,068 lines)
hack51% (488 lines)
network5% (348 lines)
crd17% (342 lines)
tools28% (278 lines)
cni8% (252 lines)
proto17% (116 lines)
netlink7% (74 lines)
platform9% (64 lines)
internal12% (54 lines)
log20% (44 lines)
bpf-prog15% (28 lines)
nmagent2% (27 lines)
azure-ipam9% (26 lines)
server17% (24 lines)
ipam3% (24 lines)
scripts3% (12 lines)
dropgz5% (12 lines)
iptables9% (12 lines)
telemetry2% (12 lines)
ebtables0% (0 lines)
common0% (0 lines)
processlock0% (0 lines)
store0% (0 lines)
debug0% (0 lines)
build0% (0 lines)
netio0% (0 lines)
refresh0% (0 lines)
ovsctl0% (0 lines)
zapai0% (0 lines)
netns0% (0 lines)
zapetw0% (0 lines)
nns0% (0 lines)
keyvault0% (0 lines)
aitelemetry0% (0 lines)
dhcp0% (0 lines)
pkgerrlint0% (0 lines)

Duplication Between Components (50+ lines)

G hack hack npm npm hack--npm 211 proto proto npm--proto 194 cns cns cns--hack 209 cns--npm 138 cns--proto 176

Download: SVG DOT (open online Graphviz editor)

Open 2D force graph... Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 1,462 duplicates...
Size#FoldersFilesLinesCode
76 x 2 hack/manifests
hack/manifests
4:79 (96%)
4:79 (96%)
view
68 x 2 npm
npm/deploy/npm
1:68 (38%)
1:68 (41%)
view
67 x 2 npm/deploy/manifests/controller
npm/deploy/manifests/daemon
1:67 (35%)
1:67 (36%)
view
44 x 2 npm
npm/deploy/manifests/common
8:51 (24%)
1:44 (100%)
view
44 x 2 npm/deploy/kustomize/base
npm/deploy/npm
1:44 (100%)
8:51 (26%)
view
44 x 2 npm/deploy/manifests/common
npm/deploy/npm
1:44 (100%)
8:51 (26%)
view
44 x 2 npm/deploy/kustomize/base
npm/deploy/manifests/common
1:44 (100%)
1:44 (100%)
view
44 x 2 npm
npm/deploy/kustomize/base
8:51 (24%)
1:44 (100%)
view
41 x 2 tools/acncli/cmd/cni
tools/acncli/cmd
17:76 (100%)
17:76 (100%)
view
31 x 2 cns/middlewares
cns/middlewares
137:177 (31%)
174:214 (22%)
view
27 x 2 cns
hack/manifests
71:97 (14%)
16:42 (34%)
view
27 x 2 npm/pkg/controlplane/controllers/v1
npm/pkg/controlplane/controllers/v2
106:154 (10%)
79:127 (14%)
view
27 x 2 npm
npm/deploy/npm
135:161 (15%)
125:151 (16%)
view
27 x 2 cns
hack/manifests
71:97 (14%)
16:42 (34%)
view
26 x 2 cns
hack/manifests
71:96 (13%)
16:41 (36%)
view
26 x 2 hack/manifests
hack/manifests
24:49 (34%)
26:51 (36%)
view
26 x 2 hack/manifests
hack/manifests
16:41 (32%)
16:41 (36%)
view
26 x 2 hack/manifests
hack/manifests
16:41 (32%)
16:41 (36%)
view
26 x 2 cns
cns
89:114 (22%)
162:187 (13%)
view
25 x 2 cni/ipam/plugin
cni/ipam/pluginv6
18:57 (96%)
18:57 (96%)
view
25 x 2 tools/acncli/cmd/cni
tools/acncli/cmd
16:52 (100%)
16:52 (100%)
view
23 x 2 tools/acncli/deployment
tools/acncli/deployment
33:55 (41%)
35:57 (40%)
view
23 x 2 npm
npm/deploy/manifests/daemon
16:38 (12%)
16:38 (12%)
view
23 x 2 npm/deploy/manifests/common
npm/deploy/manifests/daemon
9:31 (52%)
16:38 (12%)
view
23 x 2 hack/manifests
hack/manifests
1:23 (30%)
1:23 (31%)
view
23 x 2 npm
npm/deploy/manifests/controller
16:38 (12%)
16:38 (12%)
view
23 x 2 npm/deploy/kustomize/base
npm/deploy/manifests/controller
9:31 (52%)
16:38 (12%)
view
23 x 2 npm/deploy/manifests/common
npm/deploy/manifests/controller
9:31 (52%)
16:38 (12%)
view
23 x 2 npm/deploy/manifests/controller
npm/deploy/npm
16:38 (12%)
16:38 (14%)
view
23 x 2 npm/deploy/manifests/daemon
npm/deploy/npm
16:38 (12%)
16:38 (14%)
view
23 x 2 npm/deploy/kustomize/base
npm/deploy/manifests/daemon
9:31 (52%)
16:38 (12%)
view
22 x 2 npm/pkg/controlplane/controllers/v1
npm/pkg/controlplane/controllers/v1
1085:1106 (1%)
1119:1140 (1%)
view
21 x 2 npm/deploy/kustomize/base
npm/deploy/manifests/common
1:21 (84%)
1:21 (87%)
view
21 x 2 npm/pkg/controlplane/controllers/v1
npm/pkg/controlplane/controllers/v1
1292:1313 (1%)
1409:1430 (1%)
view
20 x 2 crd/multitenancy/manifests
crd/multitenancy/manifests
36:55 (19%)
34:53 (16%)
view
20 x 2 crd/multitenancy/manifests
crd/multitenantnetworkcontainer/manifests
34:53 (16%)
21:40 (19%)
view
20 x 2 npm/metrics
npm/metrics
11:32 (66%)
6:27 (80%)
view
20 x 2 cns
hack/manifests
139:158 (10%)
60:79 (25%)
view
20 x 2 hack/manifests
hack/manifests
57:76 (26%)
53:72 (27%)
view
20 x 2 npm/pkg/controlplane/controllers/v1
npm/pkg/controlplane/controllers/v1
967:987 (1%)
1410:1430 (1%)
view
20 x 2 npm/deploy/kustomize/base
npm/deploy/npm
1:20 (80%)
140:159 (12%)
view
20 x 2 crd/multitenancy/manifests
crd/multitenantnetworkcontainer/manifests
36:55 (19%)
21:40 (19%)
view
20 x 2 cns
hack/manifests
139:158 (10%)
60:79 (25%)
view
20 x 2 npm/pkg/controlplane/controllers/v1
npm/pkg/controlplane/controllers/v1
967:987 (1%)
1293:1313 (1%)
view
20 x 2 npm/deploy/manifests/common
npm/deploy/npm
1:20 (83%)
140:159 (12%)
view
20 x 2 cni/network/plugin
cni/network/stateless
73:101 (16%)
78:106 (20%)
view
20 x 2 crd/multitenantnetworkcontainer/manifests
crd/overlayextensionconfig/manifests
21:40 (19%)
28:47 (24%)
view
20 x 2 crd/multitenancy/manifests
crd/overlayextensionconfig/manifests
34:53 (16%)
28:47 (24%)
view
20 x 2 crd/multitenancy/manifests
crd/overlayextensionconfig/manifests
36:55 (19%)
28:47 (24%)
view
19 x 2 npm/pkg/controlplane/controllers/v1
npm/pkg/controlplane/controllers/v1
308:328 (1%)
387:407 (1%)
view
Duplicated Units
The list of top 14 duplicated units.
See data for all 14 unit duplicates...
Size#FoldersFilesLinesCode
39 x 2 tools/acncli/cmd
tools/acncli/cmd/cni
26:77 
26:77 
view
29 x 2 cni/ipam/pluginv6
cni/ipam/plugin
21:59 
21:59 
view
22 x 2 tools/acncli/cmd/cni
tools/acncli/cmd
26:53 
26:53 
view
16 x 2 npm/pkg/controlplane/translation
npm/pkg/controlplane/controllers/v1
125:143 
238:256 
view
15 x 2 tools/acncli/cmd/cni
tools/acncli/cmd
11:30 
11:30 
view
15 x 2 server/tls
server/tls
63:84 
66:87 
view
13 x 2 npm/pkg/controlplane/controllers/v2
npm/pkg/controlplane/controllers/v1
97:116 
124:143 
view
9 x 2 cni/network/stateless
cni/network/plugin
162:175 
200:213 
view
8 x 2 cns/ipampool/metrics
cns/ipampool
70:80 
429:439 
view
7 x 4 crd/nodenetworkconfig
crd/clustersubnetstate
crd/multitenancy
crd/overlayextensionconfig
35:43 
34:42 
33:41 
32:40 
view
7 x 2 tools/acncli/cmd/cni
tools/acncli/cmd
16:24 
16:24 
view
7 x 2 npm/pkg/controlplane/controllers/v2
npm/pkg/controlplane/controllers/v1
650:666 
572:588 
view
6 x 2 tools/acncli/cmd
tools/acncli/cmd/cni
17:24 
17:24 
view
6 x 2 npm/pkg/controlplane/controllers/v2
npm/pkg/controlplane/controllers/v1
87:95 
114:122 
view