apache / dubbo-go-samples
Duplication

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

Intro
Learn more...
Duplication Overall
system64% (6,711 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
go65% (4,466 lines)
yml72% (1,368 lines)
proto94% (434 lines)
java33% (269 lines)
yaml54% (128 lines)
js20% (34 lines)
xml46% (12 lines)
Duplication per Component (primary)
rpc56% (2,055 lines)
tls86% (601 lines)
tracing70% (565 lines)
registry79% (512 lines)
polaris94% (506 lines)
apisix66% (290 lines)
api77% (253 lines)
mesh89% (235 lines)
proxyless97% (228 lines)
config-api62% (192 lines)
game33% (178 lines)
filter56% (153 lines)
helloworld86% (149 lines)
async68% (146 lines)
context49% (107 lines)
generic27% (104 lines)
logger67% (104 lines)
skywalking66% (76 lines)
error50% (71 lines)
configcenter67% (46 lines)
otel56% (42 lines)
metrics51% (36 lines)
direct83% (31 lines)
seata-go29% (31 lines)

Duplication Between Components (50+ lines)

G rpc rpc tls tls rpc--tls 1441 tracing tracing rpc--tracing 917 seata-go seata-go rpc--seata-go 178 tls--tracing 480 apisix apisix apisix--rpc 606 polaris polaris polaris--rpc 278 polaris--tls 144 polaris--tracing 146 registry registry polaris--registry 595 registry--rpc 514 registry--tls 165 registry--tracing 210 api api api--rpc 534 api--apisix 490 mesh mesh proxyless proxyless mesh--proxyless 456 async async async--rpc 454 async--tls 176 async--tracing 142 async--polaris 136 async--registry 103 helloworld helloworld helloworld--rpc 345 helloworld--tracing 167 helloworld--registry 275 helloworld--mesh 112 helloworld--proxyless 112 error error error--rpc 328 error--tracing 129 error--polaris 114 error--registry 139 context context context--rpc 286 context--tracing 178 context--polaris 142 context--registry 153 filter filter context--filter 115 filter--rpc 208 filter--tracing 145 filter--polaris 190 filter--registry 188 config-api config-api config-api--rpc 165 config-api--tracing 126 config-api--registry 153 config-api--mesh 119 config-api--proxyless 119 config-api--helloworld 183 config-api--context 108 metrics metrics config-api--metrics 101 seata-go--tracing 110 game game game--rpc 160 direct direct direct--registry 125 configcenter configcenter configcenter--registry 116

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 2,107 duplicates...
Size#FoldersFilesLinesCode
158 x 2 tls/grpc/protobuf
tracing/grpc/protobuf
41:305 (100%)
41:305 (100%)
view
158 x 2 rpc/grpc/protobuf
tls/grpc/protobuf
41:305 (100%)
41:305 (100%)
view
158 x 2 rpc/grpc/protobuf
tracing/grpc/protobuf
41:305 (100%)
41:305 (100%)
view
69 x 2 apisix/helloworld/protobuf/helloworld
rpc/triple/pb/dubbogo-grpc/protobuf/api
45:159 (43%)
67:181 (42%)
view
66 x 2 apisix/helloworld/protobuf/helloworld
rpc/triple/pb/dubbogo-grpc/protobuf/api
180:257 (42%)
207:284 (40%)
view
52 x 2 async/go-server/pkg
rpc/dubbo/go-server/pkg
30:108 (100%)
30:108 (100%)
view
49 x 2 rpc/dubbo/go-server/pkg
tls/dubbo/go-server/pkg
28:110 (100%)
28:110 (100%)
view
48 x 2 rpc/dubbo/go-server/pkg
tls/dubbo/go-server/pkg
34:109 (90%)
34:109 (90%)
view
45 x 2 polaris/registry/go-server/cmd
registry/nacos/go-server/cmd
38:107 (100%)
38:107 (100%)
view
45 x 2 polaris/limit/go-server/cmd
polaris/registry/go-server/cmd
39:108 (100%)
38:107 (100%)
view
45 x 2 polaris/limit/go-server/cmd
registry/nacos/go-server/cmd
39:108 (100%)
38:107 (100%)
view
43 x 2 api
apisix/helloworld/protobuf/helloworld
78:153 (34%)
77:152 (35%)
view
43 x 2 tracing/dubbo/go-client/cmd
tracing/jsonrpc/go-client/cmd
75:133 (70%)
73:131 (71%)
view
42 x 2 rpc/dubbo/go-client/cmd
tls/dubbo/go-client/cmd
45:104 (87%)
45:104 (87%)
view
41 x 2 tracing/grpc/go-server/cmd
tracing/jsonrpc/go-server/cmd
77:132 (70%)
64:117 (82%)
view
41 x 2 rpc/dubbo/go-server/pkg
tls/dubbo/go-server/pkg
30:94 (100%)
30:94 (100%)
view
41 x 2 tracing/dubbo/go-server/cmd
tracing/jsonrpc/go-server/cmd
67:120 (80%)
64:117 (82%)
view
41 x 2 tracing/dubbo/go-server/cmd
tracing/grpc/go-server/cmd
67:120 (80%)
77:132 (70%)
view
41 x 2 mesh/deploy/traffic
proxyless/deploy/traffic
1:45 (100%)
1:45 (100%)
view
38 x 2 helloworld/go-server/cmd
mesh/go-server/cmd
35:87 (100%)
35:87 (100%)
view
38 x 2 mesh/go-server/cmd
proxyless/go-server/cmd
35:87 (100%)
35:87 (100%)
view
38 x 2 helloworld/go-server/cmd
proxyless/go-server/cmd
35:87 (100%)
35:87 (100%)
view
38 x 2 config-api/config-merge/go-server/cmd
mesh/go-server/cmd
35:87 (100%)
35:87 (100%)
view
38 x 2 config-api/config-merge/go-server/cmd
helloworld/go-server/cmd
35:87 (100%)
35:87 (100%)
view
38 x 2 config-api/config-merge/go-server/cmd
proxyless/go-server/cmd
35:87 (100%)
35:87 (100%)
view
37 x 2 async/go-client/pkg
rpc/dubbo/go-client/pkg
35:94 (80%)
31:90 (80%)
view
34 x 2 api
rpc/triple/pb2/api
172:216 (26%)
168:212 (26%)
view
33 x 2 polaris/registry/go-client/cmd
registry/nacos/go-client/cmd
35:80 (100%)
35:80 (100%)
view
32 x 2 rpc/grpc/protobuf
tracing/grpc/protobuf
1:37 (100%)
1:37 (100%)
view
32 x 2 tls/grpc/protobuf
tracing/grpc/protobuf
1:37 (100%)
1:37 (100%)
view
32 x 2 rpc/grpc/protobuf
tls/grpc/protobuf
1:37 (100%)
1:37 (100%)
view
30 x 2 rpc/dubbo/go-server/cmd
tls/dubbo/go-server/cmd
41:84 (100%)
41:84 (100%)
view
29 x 2 api
apisix/helloworld/protobuf/helloworld
157:200 (23%)
156:199 (24%)
view
28 x 2 proxyless/go-server/cmd
skywalking/go-server/cmd
45:82 (73%)
50:87 (57%)
view
28 x 2 helloworld/go-server/cmd
skywalking/go-server/cmd
45:82 (73%)
50:87 (57%)
view
28 x 2 mesh/go-server/cmd
skywalking/go-server/cmd
45:82 (73%)
50:87 (57%)
view
28 x 2 config-api/config-merge/go-server/cmd
skywalking/go-server/cmd
45:82 (73%)
50:87 (57%)
view
27 x 2 tracing/dubbo/go-client/cmd
tracing/jsonrpc/go-server/cmd
96:133 (44%)
80:117 (54%)
view
27 x 2 tracing/dubbo/go-client/cmd
tracing/grpc/go-server/cmd
96:133 (44%)
95:132 (46%)
view
27 x 2 tracing/grpc/go-server/cmd
tracing/jsonrpc/go-client/cmd
95:132 (46%)
94:131 (45%)
view
27 x 2 tracing/dubbo/go-server/cmd
tracing/jsonrpc/go-client/cmd
83:120 (52%)
94:131 (45%)
view
27 x 2 tracing/jsonrpc/go-client/cmd
tracing/jsonrpc/go-server/cmd
94:131 (45%)
80:117 (54%)
view
27 x 2 tracing/dubbo/go-client/cmd
tracing/dubbo/go-server/cmd
96:133 (44%)
83:120 (52%)
view
26 x 2 rpc/dubbo/java-server/sr...org/apache/dubbo/sample
rpc/triple/hessian2/java...ache/dubbo/sample/basic
6:34 (100%)
6:34 (100%)
view
25 x 2 mesh/deploy/provider
proxyless/deploy/provider
1:25 (100%)
1:25 (100%)
view
25 x 2 rpc/dubbo/go-server/pkg
rpc/triple/hessian2/go-server/cmd
66:106 (51%)
76:121 (50%)
view
25 x 2 rpc/triple/hessian2/go-server/cmd
tls/dubbo/go-server/pkg
76:121 (50%)
66:106 (51%)
view
24 x 2 registry/servicediscover...a-server/src/main/proto
rpc/dubbo/java-server/src/main/proto
1:28 (100%)
1:28 (100%)
view
24 x 2 polaris/limit/go-client/conf
polaris/router/go-client/conf
1:24 (100%)
2:25 (100%)
view
24 x 2 rpc/triple/pb/dubbogo-java/go-server/cmd
rpc/triple/pb2/go-server/cmd
41:73 (100%)
38:70 (100%)
view
Duplicated Units
The list of top 41 duplicated units.
See data for all 41 unit duplicates...
Size#FoldersFilesLinesCode
47 x 2 apisix/helloworld/protobuf/helloworld
rpc/triple/pb/dubbogo-grpc/protobuf/api
210:258 
237:285 
view
40 x 2 tls/dubbo/go-client/cmd
rpc/dubbo/go-client/cmd
58:105 
58:105 
view
32 x 5 mesh/go-server/cmd
helloworld/go-server/cmd
config-api/config-merge/go-server/cmd
proxyless/go-server/cmd
skywalking/go-server/cmd
44:79 
44:79 
44:79 
44:79 
49:84 
view
26 x 2 apisix/helloworld/protobuf/helloworld
api
169:196 
170:197 
view
24 x 2 polaris/registry/go-client/cmd
registry/nacos/go-client/cmd
54:81 
54:81 
view
21 x 3 tracing/grpc/protobuf
tls/grpc/protobuf
rpc/grpc/protobuf
270:292 
270:292 
270:292 
view
17 x 5 tracing/grpc/go-server/cmd
tracing/jsonrpc/go-client/cmd
tracing/jsonrpc/go-server/cmd
tracing/dubbo/go-client/cmd
tracing/dubbo/go-server/cmd
100:118 
99:117 
85:103 
102:120 
89:107 
view
17 x 3 tracing/jsonrpc/go-client/cmd
tracing/dubbo/go-client/cmd
rpc/jsonrpc/go-client/cmd
76:97 
78:99 
71:93 
view
17 x 2 game/go-server-game/cmd
game/go-server-gate/cmd
58:79 
65:86 
view
17 x 2 generic/default/go-server/pkg
generic/default/go-server/pkg
102:121 
103:122 
view
17 x 6 rpc/triple/msgpack/go-server/cmd
rpc/triple/pb/dubbogo-java/go-server/cmd
rpc/triple/pb/dubbogo-grpc/go-server/cmd
rpc/triple/pb2/go-server/cmd
rpc/triple/hessian2/go-server/cmd
error/triple/hessian2/go-server/cmd
70:92 
54:76 
54:76 
51:73 
57:79 
55:77 
view
16 x 17 tracing/grpc/go-server/cmd
tracing/jsonrpc/go-server/cmd
tracing/dubbo/go-server/cmd
context/dubbo/go-server/cmd
async/go-server/cmd
tls/dubbo/go-server/cmd
polaris/limit/go-server/cmd
polaris/registry/go-server/cmd
polaris/router/go-server/server-dev/cmd
polaris/router/go-server/server-pre/cmd
...
77:98 
64:83 
67:86 
94:115 
63:84 
66:87 
90:111 
89:110 
90:111 
90:111 
...
view
15 x 4 tracing/grpc/protobuf
tls/grpc/protobuf
rpc/grpc/protobuf
rpc/triple/pb/dubbogo-grpc/protobuf/api
205:221 
205:221 
205:221 
129:145 
view
14 x 2 mesh/go-client/cmd
proxyless/go-client/cmd
38:54 
38:54 
view
14 x 2 api
rpc/triple/pb2/api
199:214 
195:210 
view
13 x 3 metrics/go-client/cmd
helloworld/go-client/cmd
direct/go-client/cmd
38:53 
38:53 
38:53 
view
13 x 2 tls/dubbo/go-server/pkg
rpc/dubbo/go-server/pkg
90:106 
90:106 
view
13 x 2 rpc/dubbo/java-server/sr...org/apache/dubbo/sample
rpc/triple/hessian2/java...ache/dubbo/sample/basic
21:35 
21:35 
view
12 x 3 tracing/grpc/protobuf
tls/grpc/protobuf
rpc/grpc/protobuf
294:307 
294:307 
294:307 
view
12 x 6 configcenter/nacos/go-client/cmd
configcenter/zookeeper/go-client/cmd
registry/all/nacos/go-client/cmd
registry/all/zookeeper/go-client/cmd
registry/servicediscovery/nacos/go-client/cmd
registry/servicediscovery/zookeeper/go-client/cmd
42:56 
42:56 
42:56 
42:56 
42:56 
42:56 
view
12 x 2 tls/dubbo/go-server/cmd
rpc/dubbo/go-server/cmd
46:64 
46:64 
view
11 x 5 tracing/grpc/go-server/cmd
tracing/jsonrpc/go-client/cmd
tracing/jsonrpc/go-server/cmd
tracing/dubbo/go-client/cmd
tracing/dubbo/go-server/cmd
121:133 
120:132 
106:118 
122:134 
109:121 
view
10 x 3 async/go-server/pkg
tls/dubbo/go-server/pkg
rpc/dubbo/go-server/pkg
37:49 
45:57 
45:57 
view
10 x 2 tls/dubbo/go-server/pkg
rpc/dubbo/go-server/pkg
59:71 
59:71 
view
10 x 2 filter/token/go-client/cmd
filter/custom/go-client/cmd
41:53 
41:53 
view
10 x 3 rpc/jsonrpc/go-server/pkg
rpc/jsonrpc/go-server/pkg
rpc/jsonrpc/go-server/pkg
47:59 
47:59 
47:59 
view
10 x 3 rpc/jsonrpc/go-server/pkg
rpc/jsonrpc/go-server/pkg
rpc/jsonrpc/go-server/pkg
61:73 
61:73 
61:73 
view
9 x 2 apisix/helloworld/protobuf/helloworld
rpc/triple/pb/dubbogo-grpc/protobuf/api
68:78 
90:100 
view
9 x 2 apisix/helloworld/protobuf/helloworld
rpc/triple/pb/dubbogo-grpc/protobuf/api
118:128 
140:150 
view
9 x 2 tls/triple/go-client/cmd
rpc/triple/codec-extension/go-client/cmd
48:59 
48:59 
view
8 x 2 async/go-server/pkg
rpc/dubbo/go-server/pkg
89:98 
89:98 
view
8 x 2 generic/default/go-server/pkg
generic/default/go-server/pkg
69:78 
70:79 
view
7 x 3 apisix/helloworld/protobuf/helloworld
api
rpc/triple/pb2/api
87:95 
88:96 
84:92 
view
7 x 3 rpc/jsonrpc/go-server/pkg
rpc/jsonrpc/go-server/pkg
rpc/jsonrpc/go-server/pkg
75:84 
75:84 
75:84 
view
6 x 2 helloworld/java-server/s...ache/dubbo/sample/basic
registry/servicediscover...ache/dubbo/sample/basic
26:33 
26:33 
view
6 x 3 tracing/grpc/protobuf
tls/grpc/protobuf
rpc/grpc/protobuf
178:185 
178:185 
178:185 
view
6 x 2 apisix/helloworld/protobuf/helloworld
rpc/triple/pb/dubbogo-grpc/protobuf/api
53:60 
75:82 
view
6 x 2 apisix/helloworld/protobuf/helloworld
rpc/triple/pb/dubbogo-grpc/protobuf/api
103:110 
125:132 
view
6 x 2 tls/triple/go-server/cmd
rpc/triple/codec-extension/go-server/cmd
44:51 
44:51 
view
6 x 2 generic/default/go-server/pkg
generic/default/go-server/pkg
60:67 
61:68 
view
6 x 2 generic/default/go-server/pkg
generic/default/go-server/pkg
80:87 
81:88 
view