apache / apisix
Duplication

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

Intro
Learn more...
Duplication Overall
system27% (15,107 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
t82% (9,094 lines)
lua13% (5,121 lines)
go13% (346 lines)
js55% (187 lines)
proto30% (106 lines)
pm12% (100 lines)
py15% (59 lines)
rego54% (48 lines)
toml15% (15 lines)
xml54% (12 lines)
sql2% (12 lines)
yaml2% (7 lines)
Duplication per Component (primary)
t59% (10,547 lines)
apisix12% (4,444 lines)
ci29% (63 lines)
example83% (46 lines)
conf21% (7 lines)
utils0% (0 lines)
benchmark0% (0 lines)
autodocs0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G apisix apisix t t apisix--t 306

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 10,870 duplicates...
Size#FoldersFilesLinesCode
85 x 2 t/plugin
t/plugin
20:128 (100%)
20:128 (100%)
view
83 x 2 t/discovery
t/discovery
19:113 (70%)
19:113 (97%)
view
75 x 2 t/xrpc
t/xrpc
19:106 (100%)
19:106 (100%)
view
69 x 2 t/plugin
t/plugin
20:107 (86%)
20:107 (51%)
view
65 x 2 t/plugin
t/plugin
48:128 (76%)
42:122 (81%)
view
65 x 2 t/plugin
t/plugin
48:128 (76%)
42:122 (81%)
view
63 x 2 t/kubernetes/discovery
t/kubernetes/discovery/stream
125:194 (40%)
82:151 (45%)
view
60 x 2 t/kubernetes/discovery
t/kubernetes/discovery
66:141 (38%)
72:147 (32%)
view
57 x 2 t/plugin/grpc-web/a6
t/plugin/grpc-web/a6
66:193 (79%)
66:193 (79%)
view
54 x 2 t/plugin
t/plugin
48:113 (63%)
42:107 (40%)
view
54 x 2 t/plugin
t/plugin
48:113 (63%)
42:107 (40%)
view
52 x 2 t/plugin
t/plugin
17:80 (100%)
17:80 (100%)
view
50 x 2 t/plugin
t/plugin
48:113 (71%)
42:107 (76%)
view
49 x 2 t/discovery
t/discovery/stream
19:78 (41%)
19:78 (55%)
view
49 x 2 t/discovery
t/discovery/stream
19:78 (43%)
19:78 (57%)
view
49 x 2 t/discovery
t/discovery/stream
19:78 (57%)
19:78 (55%)
view
46 x 2 t/xrpc
t/xrpc
37:88 (70%)
36:87 (61%)
view
46 x 2 t/xrpc
t/xrpc
37:88 (70%)
36:87 (61%)
view
44 x 2 t/discovery/stream
t/discovery/stream
36:87 (50%)
36:87 (51%)
view
44 x 2 apisix/plugins
apisix/plugins
76:119 (11%)
56:99 (19%)
view
42 x 2 t/plugin
t/plugin
55:104 (49%)
69:118 (37%)
view
42 x 2 t/plugin
t/plugin
49:98 (52%)
69:118 (37%)
view
42 x 2 t/plugin
t/plugin
55:104 (49%)
69:118 (37%)
view
42 x 2 t/plugin
t/plugin
49:98 (31%)
69:118 (37%)
view
41 x 2 t/discovery
t/discovery
36:83 (48%)
36:83 (36%)
view
41 x 2 t/discovery
t/discovery
36:83 (34%)
36:83 (36%)
view
40 x 2 t/tars/discovery/stream
t/tars/discovery
24:71 (36%)
19:66 (34%)
view
38 x 2 t/plugin
t/plugin
19:67 (100%)
19:67 (100%)
view
38 x 2 apisix/discovery/consul
apisix/discovery/consul_kv
53:91 (51%)
49:87 (54%)
view
37 x 2 t/discovery
t/discovery/stream
36:78 (33%)
36:78 (42%)
view
37 x 2 t/discovery
t/discovery/stream
36:78 (31%)
36:78 (43%)
view
37 x 2 t/discovery
t/discovery/stream
36:78 (43%)
36:78 (43%)
view
36 x 2 t/discovery
t/discovery/stream
79:118 (42%)
83:122 (40%)
view
36 x 2 t/plugin/ext-plugin
t/plugin/ext-plugin
19:65 (100%)
19:65 (100%)
view
36 x 2 t/plugin/ext-plugin
t/plugin/ext-plugin
19:65 (100%)
19:65 (100%)
view
36 x 2 t/plugin/ext-plugin
t/plugin/ext-plugin
19:65 (100%)
19:65 (100%)
view
36 x 2 t/tars/discovery/stream
t/tars/discovery
76:117 (33%)
112:153 (30%)
view
35 x 2 t/plugin
t/plugin
20:65 (35%)
20:65 (41%)
view
35 x 2 t/plugin
t/plugin
20:65 (35%)
20:65 (41%)
view
35 x 2 t/plugin/ext-plugin
t/plugin/ext-plugin
27:72 (83%)
34:79 (74%)
view
35 x 2 t/plugin
t/plugin
20:65 (41%)
20:65 (50%)
view
35 x 2 t/plugin
t/plugin
20:65 (41%)
20:65 (50%)
view
35 x 2 t/plugin
t/plugin
20:65 (35%)
20:65 (50%)
view
34 x 2 t/discovery
t/discovery/stream
79:113 (28%)
83:117 (38%)
view
33 x 2 t/plugin
t/plugin
120:154 (25%)
63:97 (44%)
view
32 x 2 t/plugin/ext-plugin
t/plugin/ext-plugin
24:65 (88%)
25:66 (86%)
view
32 x 2 t/plugin/ext-plugin
t/plugin/ext-plugin
25:66 (86%)
24:65 (88%)
view
32 x 2 t/plugin/ext-plugin
t/plugin/ext-plugin
25:66 (86%)
24:65 (88%)
view
31 x 2 t/discovery
t/discovery/stream
79:110 (27%)
83:114 (36%)
view
30 x 2 t/plugin
t/plugin
20:59 (37%)
20:59 (46%)
view
Duplicated Units
The list of top 31 duplicated units.
See data for all 31 unit duplicates...
Size#FoldersFilesLinesCode
71 x 2 t/plugin
t/plugin
35:124 
35:124 
view
64 x 2 t/xrpc
t/xrpc
28:102 
28:102 
view
47 x 2 t/discovery/stream
t/discovery/stream
25:83 
25:83 
view
44 x 3 t/discovery
t/discovery
t/discovery
25:79 
25:79 
25:79 
view
36 x 2 t/plugin
t/plugin
35:76 
35:76 
view
30 x 2 t/plugin/ext-plugin
t/plugin/ext-plugin
36:75 
29:68 
view
28 x 4 t/plugin/ext-plugin
t/plugin/ext-plugin
t/plugin/ext-plugin
t/plugin/ext-plugin
24:61 
24:61 
24:61 
25:62 
view
28 x 2 t/plugin
t/plugin
26:63 
26:63 
view
17 x 2 t/node
t/node
28:51 
28:51 
view
15 x 4 t/control
t/control
t/control
t/node
25:44 
25:44 
25:44 
26:45 
view
13 x 4 t/config-center-yaml
t/plugin
t/plugin
t/node
24:41 
24:41 
24:41 
28:45 
view
13 x 2 t/lib
t/lib
117:133 
197:213 
view
12 x 2 t/discovery
t/discovery
26:43 
26:43 
view
12 x 2 apisix/balancer
apisix/balancer
125:141 
60:76 
view
11 x 2 t/plugin
t/plugin
24:38 
24:38 
view
10 x 3 t/config-center-yaml
t/config-center-yaml
t/plugin
24:37 
24:37 
24:37 
view
10 x 2 t/core
t/node
23:37 
25:39 
view
10 x 2 t/plugin
t/plugin
25:38 
28:41 
view
8 x 2 t/pubsub
t/pubsub
26:38 
26:38 
view
8 x 3 apisix/core
apisix/core
apisix/core
790:801 
348:359 
243:254 
view
8 x 2 apisix/plugins
apisix/plugins
84:94 
156:166 
view
7 x 9 t/admin
t/admin
t/admin
t/admin
t/plugin
t/cli
t/control
t/control
t/control
25:35 
25:35 
25:35 
25:35 
19:29 
28:38 
25:35 
23:33 
25:35 
view
7 x 29 t/admin
t/admin
t/admin
t/admin
t/admin
t/admin
t/admin
t/admin
t/admin
t/admin
...
25:35 
25:35 
25:35 
25:35 
25:35 
25:35 
25:35 
25:35 
25:35 
25:35 
...
view
7 x 20 t/router
t/core
t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
...
24:34 
24:34 
19:29 
19:29 
34:44 
45:55 
29:39 
40:50 
35:45 
25:35 
...
view
7 x 10 t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
25:35 
25:36 
25:35 
25:35 
25:36 
24:34 
23:33 
25:35 
25:35 
25:35 
view
7 x 5 t/plugin
t/plugin
t/plugin
t/plugin
t/plugin
24:33 
27:36 
24:33 
24:33 
24:33 
view
7 x 2 apisix/discovery/consul
apisix/discovery/consul_kv
676:684 
428:436 
view
7 x 2 apisix/plugins
apisix/plugins
123:132 
88:97 
view
6 x 2 t/plugin/grpc-web/a6
t/plugin/grpc-web/a6
109:116 
109:116 
view
6 x 2 apisix/plugins/limit-conn
apisix/plugins/limit-req
45:52 
43:51 
view
6 x 2 apisix/plugins/limit-conn
apisix/plugins/limit-conn
71:81 
64:74 
view