apache / shenyu
Duplication

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

Intro
Learn more...
Duplication Overall
system31% (28,885 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
sql77% (13,633 lines)
java19% (12,800 lines)
xml23% (1,643 lines)
http46% (471 lines)
yaml87% (138 lines)
html18% (110 lines)
proto57% (90 lines)
Duplication per Component (primary)
db83% (13,606 lines)
shenyu-admin23% (8,337 lines)
shenyu-common22% (1,715 lines)
shenyu-plugin9% (1,168 lines)
shenyu-kubernetes-controller40% (820 lines)
shenyu-client10% (458 lines)
shenyu-sync-data-center16% (373 lines)
shenyu-admin-listener31% (337 lines)
shenyu-register-center25% (328 lines)
shenyu-examples57% (313 lines)
shenyu-registry17% (278 lines)
shenyu-sdk17% (268 lines)
shenyu-alert28% (256 lines)
shenyu-dist49% (203 lines)
shenyu-web12% (165 lines)
shenyu-spring-boot-starter7% (132 lines)
shenyu-loadbalancer11% (50 lines)
shenyu-bootstrap81% (49 lines)
shenyu-protocol2% (16 lines)
shenyu-disruptor6% (13 lines)
shenyu-spi0% (0 lines)
script0% (0 lines)
shenyu-e2e0% (0 lines)
shenyu-infra0% (0 lines)

Duplication Between Components (50+ lines)

G shenyu-admin shenyu-admin shenyu-common shenyu-common shenyu-admin--shenyu-common 1968 shenyu-register-center shenyu-register-center shenyu-admin--shenyu-register-center 962 shenyu-sync-data-center shenyu-sync-data-center shenyu-admin--shenyu-sync-data-center 544 shenyu-plugin shenyu-plugin shenyu-admin--shenyu-plugin 424 shenyu-alert shenyu-alert shenyu-admin--shenyu-alert 432 shenyu-loadbalancer shenyu-loadbalancer shenyu-admin--shenyu-loadbalancer 330 shenyu-client shenyu-client shenyu-admin--shenyu-client 362 shenyu-registry shenyu-registry shenyu-admin--shenyu-registry 172 shenyu-dist shenyu-dist shenyu-admin--shenyu-dist 136 shenyu-bootstrap shenyu-bootstrap shenyu-admin--shenyu-bootstrap 78 shenyu-spring-boot-starter shenyu-spring-boot-starter shenyu-admin--shenyu-spring-boot-starter 69 shenyu-common--shenyu-register-center 528 shenyu-common--shenyu-sync-data-center 324 shenyu-common--shenyu-plugin 462 shenyu-common--shenyu-loadbalancer 392 shenyu-common--shenyu-registry 54 shenyu-register-center--shenyu-registry 81 shenyu-admin-listener shenyu-admin-listener shenyu-admin-listener--shenyu-admin 216 shenyu-admin-listener--shenyu-sync-data-center 514 shenyu-admin-listener--shenyu-plugin 56 shenyu-admin-listener--shenyu-registry 320 shenyu-admin-listener--shenyu-spring-boot-starter 86 shenyu-plugin--shenyu-register-center 130 shenyu-plugin--shenyu-sync-data-center 131 shenyu-plugin--shenyu-registry 84 shenyu-client--shenyu-common 316 shenyu-registry--shenyu-sync-data-center 230 db db db--shenyu-admin 146 shenyu-bootstrap--shenyu-dist 130

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 9,349 duplicates...
Size#FoldersFilesLinesCode
757 x 2 db/init/og
db/init/pg
20:908 (30%)
20:908 (29%)
view
699 x 2 db/init/mysql
db/init/ob
17:855 (31%)
17:855 (32%)
view
506 x 2 db/init/mysql
db/init/ob
1373:1897 (22%)
1345:1869 (23%)
view
473 x 2 db/init/og
db/init/pg
1363:1855 (19%)
1424:1916 (18%)
view
361 x 2 db/init/mysql
db/init/ob
966:1349 (16%)
946:1329 (16%)
view
245 x 2 db/init/og
db/init/pg
1871:2159 (9%)
1999:2287 (9%)
view
242 x 2 db/init/og
db/init/pg
2563:2841 (9%)
2687:2962 (9%)
view
229 x 2 db/init/mysql
db/init/ob
2203:2494 (10%)
2144:2435 (10%)
view
210 x 2 db/init/mysql
db/init/ob
1928:2185 (9%)
1882:2139 (9%)
view
140 x 2 shenyu-admin/src/main/ja...enyu/admin/model/entity
shenyu-alert/src/main/ja...ache/shenyu/alert/model
32:620 (99%)
35:623 (98%)
view
131 x 2 db/upgrade
db/upgrade
181:335 (50%)
184:338 (50%)
view
116 x 2 db/init/oracle
db/upgrade
3064:3236 (4%)
64:237 (51%)
view
116 x 2 db/upgrade
db/upgrade
18:158 (100%)
18:156 (100%)
view
115 x 2 db/upgrade
db/upgrade
18:155 (99%)
18:153 (99%)
view
106 x 2 db/init/oracle
db/upgrade
2951:3061 (4%)
265:375 (32%)
view
104 x 2 db/init/og
db/init/pg
989:1100 (4%)
1050:1161 (4%)
view
77 x 2 db/init/pg
db/upgrade
2849:2931 (2%)
214:295 (29%)
view
77 x 2 db/init/og
db/upgrade
2729:2809 (3%)
214:295 (29%)
view
77 x 2 db/init/og
db/upgrade
2729:2809 (3%)
217:298 (29%)
view
77 x 2 db/init/pg
db/upgrade
2849:2931 (2%)
217:298 (29%)
view
74 x 2 db/init/oracle
db/upgrade
2795:2882 (2%)
97:183 (22%)
view
68 x 2 db/init/og
db/init/pg
2163:2336 (2%)
2291:2463 (2%)
view
68 x 2 shenyu-admin/src/main/ja.../shenyu/admin/model/dto
shenyu-admin/src/main/ja...enyu/admin/model/entity
143:441 (57%)
122:387 (33%)
view
67 x 2 db/init/og
db/init/pg
1133:1199 (2%)
1193:1259 (2%)
view
66 x 2 db/upgrade
db/upgrade
52:133 (71%)
54:135 (70%)
view
64 x 2 db/init/oracle
db/upgrade
2532:2603 (2%)
73:144 (28%)
view
61 x 2 db/upgrade
db/upgrade
93:165 (23%)
83:155 (23%)
view
60 x 2 db/init/pg
db/upgrade
1839:1903 (2%)
132:196 (14%)
view
60 x 2 db/init/mysql
db/upgrade
1738:1802 (2%)
130:194 (18%)
view
60 x 2 db/init/og
db/upgrade
1778:1842 (2%)
132:196 (14%)
view
60 x 2 shenyu-admin/src/main/ja.../shenyu/admin/model/dto
shenyu-admin/src/main/ja...e/shenyu/admin/model/vo
143:405 (50%)
138:400 (26%)
view
60 x 2 db/init/og
db/upgrade
831:895 (2%)
198:262 (14%)
view
60 x 2 db/init/ob
db/upgrade
702:766 (2%)
196:260 (18%)
view
60 x 2 db/init/mysql
db/upgrade
702:766 (2%)
196:260 (18%)
view
60 x 2 db/init/ob
db/upgrade
1710:1774 (2%)
130:194 (18%)
view
60 x 2 db/init/pg
db/upgrade
831:895 (2%)
198:262 (14%)
view
60 x 2 shenyu-admin/src/main/ja...enyu/admin/model/entity
shenyu-admin/src/main/ja...e/shenyu/admin/model/vo
122:355 (29%)
138:400 (26%)
view
58 x 2 db/init/oracle
db/upgrade
3238:3323 (2%)
243:329 (25%)
view
58 x 2 db/init/pg
db/upgrade
2933:2998 (2%)
39:105 (50%)
view
58 x 2 db/init/oracle
db/upgrade
1983:2068 (2%)
215:300 (25%)
view
58 x 2 db/init/pg
db/upgrade
2933:2998 (2%)
40:106 (50%)
view
57 x 2 db/init/og
db/init/pg
2393:2461 (2%)
2520:2588 (2%)
view
54 x 2 db/init/og
db/init/pg
2504:2561 (2%)
2628:2685 (2%)
view
54 x 2 db/init/og
db/init/pg
1201:1256 (2%)
1261:1316 (2%)
view
53 x 2 db/init/mysql
db/init/ob
885:946 (2%)
868:928 (2%)
view
52 x 2 shenyu-admin/src/main/ja...e/shenyu/admin/model/vo
shenyu-register-center/s...nyu/register/common/dto
156:382 (22%)
135:361 (20%)
view
52 x 2 shenyu-admin/src/main/ja.../shenyu/admin/model/dto
shenyu-register-center/s...nyu/register/common/dto
161:387 (44%)
135:361 (20%)
view
52 x 2 shenyu-admin/src/main/ja.../shenyu/admin/model/dto
shenyu-admin/src/main/ja...e/shenyu/admin/model/vo
146:372 (27%)
149:375 (32%)
view
52 x 2 shenyu-admin/src/main/ja...enyu/admin/model/entity
shenyu-register-center/s...nyu/register/common/dto
138:339 (25%)
135:361 (20%)
view
51 x 2 db/init/oracle
db/upgrade
2450:2504 (1%)
451:504 (10%)
view
Duplicated Units
The list of top 34 duplicated units.
See data for all 34 unit duplicates...
Size#FoldersFilesLinesCode
49 x 2 shenyu-plugin/shenyu-plu...shenyu/plugin/tars/util
shenyu-plugin/shenyu-plu...henyu/plugin/motan/util
35:85 
31:81 
view
23 x 2 shenyu-common/src/main/j...mmon/dto/convert/plugin
shenyu-common/src/main/j...mmon/dto/convert/plugin
190:214 
191:215 
view
18 x 2 shenyu-plugin/shenyu-plu...plugin/ai/token/limiter
shenyu-plugin/shenyu-plu.../plugin/logging/console
293:312 
364:383 
view
16 x 2 shenyu-admin/src/main/ja.../mybatis/og/interceptor
shenyu-admin/src/main/ja.../mybatis/pg/interceptor
45:62 
45:62 
view
16 x 3 shenyu-kubernetes-contro...pache/shenyu/k8s/parser
shenyu-kubernetes-contro...pache/shenyu/k8s/parser
shenyu-kubernetes-contro...pache/shenyu/k8s/parser
192:209 
271:288 
271:288 
view
15 x 3 shenyu-sync-data-center/...nyu/sync/data/zookeeper
shenyu-registry/shenyu-r...enyu/registry/zookeeper
shenyu-admin-listener/sh...dmin/listener/zookeeper
159:175 
156:172 
158:174 
view
13 x 3 shenyu-sync-data-center/...nyu/sync/data/zookeeper
shenyu-admin/src/main/ja.../cluster/impl/zookeeper
shenyu-admin-listener/sh...dmin/listener/zookeeper
236:250 
236:250 
234:248 
view
13 x 2 shenyu-spring-boot-start...oot/starter/client/grpc
shenyu-spring-boot-start...tarter/client/springmvc
60:74 
82:96 
view
12 x 3 shenyu-sync-data-center/...nyu/sync/data/zookeeper
shenyu-admin/src/main/ja.../cluster/impl/zookeeper
shenyu-admin-listener/sh...dmin/listener/zookeeper
52:68 
52:68 
52:68 
view
12 x 2 shenyu-plugin/shenyu-plu.../ai/token/limiter/redis
shenyu-plugin/shenyu-plu...gin/ratelimiter/handler
52:65 
52:65 
view
12 x 2 shenyu-plugin/shenyu-plu...lugin/websocket/handler
shenyu-plugin/shenyu-plu...u/plugin/divide/handler
44:57 
44:59 
view
12 x 2 shenyu-sdk/shenyu-sdk-sp...pache/shenyu/sdk/spring
shenyu-sdk/shenyu-sdk-fe...apache/shenyu/sdk/feign
226:239 
270:283 
view
11 x 2 shenyu-common/src/main/j...on/dto/convert/selector
shenyu-common/src/main/j...on/dto/convert/selector
42:54 
67:79 
view
10 x 3 shenyu-admin/src/main/ja.../mybatis/og/interceptor
shenyu-admin/src/main/ja...yu/admin/mybatis/oracle
shenyu-admin/src/main/ja.../mybatis/pg/interceptor
50:62 
50:61 
50:61 
view
10 x 4 shenyu-kubernetes-contro...pache/shenyu/k8s/parser
shenyu-kubernetes-contro...pache/shenyu/k8s/parser
shenyu-kubernetes-contro...pache/shenyu/k8s/parser
shenyu-kubernetes-contro...pache/shenyu/k8s/parser
275:286 
206:217 
288:299 
135:146 
view
9 x 2 shenyu-sync-data-center/...nyu/sync/data/zookeeper
shenyu-admin/src/main/ja.../cluster/impl/zookeeper
140:150 
140:150 
view
9 x 2 shenyu-sync-data-center/...e/shenyu/sync/data/core
shenyu-admin-listener/sh...e/shenyu/admin/listener
359:369 
382:392 
view
9 x 2 shenyu-plugin/shenyu-plu...plugin/ai/common/config
shenyu-common/src/main/j...common/dto/convert/rule
212:222 
230:240 
view
9 x 2 shenyu-admin/src/main/ja.../shenyu/admin/model/dto
shenyu-admin/src/main/ja...enyu/admin/model/entity
324:334 
255:265 
view
9 x 2 shenyu-client/shenyu-cli...core/register/registrar
shenyu-client/shenyu-cli...core/register/registrar
167:177 
157:167 
view
8 x 2 shenyu-sync-data-center/...e/shenyu/sync/data/etcd
shenyu-sync-data-center/...nyu/sync/data/zookeeper
70:79 
73:82 
view
8 x 3 shenyu-plugin/shenyu-plu...plugin/ai/token/limiter
shenyu-plugin/shenyu-plu...gin/logging/common/body
shenyu-plugin/shenyu-plu.../plugin/logging/console
278:287 
50:59 
349:358 
view
8 x 2 shenyu-plugin/shenyu-plu...lugin/huawei/lts/client
shenyu-plugin/shenyu-plu...ugin/tencent/cls/client
170:179 
157:166 
view
8 x 2 shenyu-client/shenyu-cli...core/register/registrar
shenyu-client/shenyu-cli...enyu/client/core/client
130:139 
261:270 
view
7 x 3 shenyu-sync-data-center/...nyu/sync/data/zookeeper
shenyu-registry/shenyu-r...enyu/registry/zookeeper
shenyu-admin-listener/sh...dmin/listener/zookeeper
73:81 
71:79 
73:81 
view
7 x 2 shenyu-plugin/shenyu-plu.../plugin/hystrix/command
shenyu-plugin/shenyu-plu.../plugin/hystrix/command
53:61 
53:61 
view
7 x 2 shenyu-admin/src/main/ja...ache/shenyu/admin/utils
shenyu-admin/src/main/ja...ache/shenyu/admin/utils
42:50 
42:50 
view
7 x 2 shenyu-admin/src/main/ja.../shenyu/admin/discovery
shenyu-admin/src/main/ja.../shenyu/admin/discovery
84:92 
143:151 
view
7 x 2 shenyu-web/src/main/java...pache/shenyu/web/loader
shenyu-web/src/main/java...pache/shenyu/web/loader
358:366 
197:205 
view
6 x 4 shenyu-sync-data-center/...nyu/sync/data/zookeeper
shenyu-admin/src/main/ja.../cluster/impl/zookeeper
shenyu-registry/shenyu-r...enyu/registry/zookeeper
shenyu-admin-listener/sh...dmin/listener/zookeeper
125:132 
125:132 
122:129 
124:131 
view
6 x 4 shenyu-sync-data-center/...nyu/sync/data/zookeeper
shenyu-admin/src/main/ja.../cluster/impl/zookeeper
shenyu-registry/shenyu-r...enyu/registry/zookeeper
shenyu-admin-listener/sh...dmin/listener/zookeeper
184:191 
184:191 
181:188 
183:190 
view
6 x 4 shenyu-sync-data-center/...nyu/sync/data/zookeeper
shenyu-admin/src/main/ja.../cluster/impl/zookeeper
shenyu-registry/shenyu-r...enyu/registry/zookeeper
shenyu-admin-listener/sh...dmin/listener/zookeeper
257:264 
257:264 
267:274 
255:262 
view
6 x 2 shenyu-admin/src/main/ja...admin/config/properties
shenyu-spring-boot-start...oot/sync/data/zookeeper
111:118 
111:118 
view
6 x 2 shenyu-admin/src/main/ja.../mybatis/og/interceptor
shenyu-admin/src/main/ja.../mybatis/pg/interceptor
40:65 
40:65 
view