apache / directory-server
Duplication

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

Intro
Learn more...
Duplication Overall
system14% (7,890 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
java13% (7,267 lines)
in45% (533 lines)
nsi7% (42 lines)
xml9% (30 lines)
spec20% (18 lines)
Duplication per Component (primary)
xdbm-partition21% (1,276 lines)
mavibot-partition79% (963 lines)
core-avl35% (893 lines)
mavibotv2-partition67% (857 lines)
core-api9% (678 lines)
jdbm-partition31% (633 lines)
installers-maven-plugin21% (626 lines)
interceptors7% (623 lines)
protocol-ldap7% (394 lines)
core9% (185 lines)
core-shared8% (131 lines)
protocol-dns8% (124 lines)
server-config5% (117 lines)
protocol-dhcp7% (102 lines)
ldif-partition12% (71 lines)
core-jndi4% (66 lines)
protocol-ntp6% (32 lines)
bulkloader1% (20 lines)
i18n2% (18 lines)
server-integ17% (18 lines)
osgi14% (16 lines)
protocol-shared2% (14 lines)
core-annotations2% (12 lines)
wrapper7% (7 lines)
service1% (7 lines)
src21% (7 lines)
core-constants0% (0 lines)
interceptor-kerberos0% (0 lines)
server-jndi0% (0 lines)
ldap-client-test0% (0 lines)
core-integ0% (0 lines)
ROOT0% (0 lines)
syncrepl0% (0 lines)
http-directory-bridge0% (0 lines)
http-integration0% (0 lines)
test-framework0% (0 lines)
kerberos-codec0% (0 lines)
server-annotations0% (0 lines)
service-builder0% (0 lines)
installers0% (0 lines)

Duplication Between Components (50+ lines)

G mavibot-partition mavibot-partition mavibotv2-partition mavibotv2-partition mavibot-partition--mavibotv2-partition 1651 xdbm-partition xdbm-partition mavibot-partition--xdbm-partition 205 mavibotv2-partition--xdbm-partition 133 jdbm-partition jdbm-partition jdbm-partition--mavibot-partition 716 jdbm-partition--mavibotv2-partition 442 jdbm-partition--xdbm-partition 201 ldif-partition ldif-partition jdbm-partition--ldif-partition 62 core-avl core-avl core-avl--mavibot-partition 61 core-avl--mavibotv2-partition 52 core-avl--jdbm-partition 95 core-avl--xdbm-partition 178 core-api core-api server-config server-config core-api--server-config 154 core-shared core-shared core-shared--mavibot-partition 82 core-shared--mavibotv2-partition 56 core-shared--jdbm-partition 50

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 1,008 duplicates...
Size#FoldersFilesLinesCode
101 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
124:395 (80%)
124:395 (80%)
view
77 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
183:378 (67%)
185:380 (66%)
view
61 x 2 core-api/src/main/java/o.../core/api/authn/ppolicy
server-config/src/main/j...ory/server/config/beans
228:408 (40%)
240:420 (37%)
view
56 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:63 (94%)
1:63 (94%)
view
56 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:63 (94%)
1:63 (94%)
view
56 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:63 (94%)
1:63 (94%)
view
52 x 2 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
104:249 (40%)
103:251 (40%)
view
52 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
163:264 (40%)
188:287 (45%)
view
51 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
38:152 (100%)
38:152 (100%)
view
49 x 2 core-avl/src/main/java/o...ory/server/core/avltree
xdbm-partition/src/main/...e/directory/server/xdbm
138:261 (51%)
140:265 (44%)
view
43 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
196:291 (47%)
205:300 (45%)
view
43 x 2 xdbm-partition/src/main/...re/partition/impl/btree
xdbm-partition/src/main/...re/partition/impl/btree
1609:1714 (3%)
1751:1856 (3%)
view
38 x 2 protocol-ldap/src/main/j...p/handlers/sasl/cramMD5
protocol-ldap/src/main/j...handlers/sasl/digestMD5
69:136 (88%)
69:136 (88%)
view
36 x 2 jdbm-partition/src/main/...rtition/impl/btree/jdbm
mavibot-partition/src/ma...tion/impl/btree/mavibot
388:500 (25%)
354:466 (25%)
view
35 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
57:177 (30%)
57:177 (30%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
30:65 (50%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
30:65 (50%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
30:65 (50%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
30:65 (50%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
30:65 (50%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
30:65 (50%)
24:60 (54%)
view
32 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
24:60 (54%)
24:60 (54%)
view
31 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
55:176 (32%)
55:175 (33%)
view
29 x 2 protocol-ldap/src/main/j.../ldap/handlers/extended
protocol-ldap/src/main/j.../ldap/handlers/extended
168:223 (15%)
277:333 (15%)
view
29 x 2 xdbm-partition/src/main/...r/xdbm/search/evaluator
xdbm-partition/src/main/...r/xdbm/search/evaluator
116:211 (41%)
116:203 (42%)
view
29 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
123:191 (53%)
136:204 (50%)
view
28 x 2 jdbm-partition/src/main/...rtition/impl/btree/jdbm
mavibot-partition/src/ma...tion/impl/btree/mavibot
174:235 (47%)
306:367 (24%)
view
28 x 2 jdbm-partition/src/main/...rtition/impl/btree/jdbm
mavibotv2-partition/src/...tion/impl/btree/mavibot
174:235 (47%)
308:369 (24%)
view
26 x 2 jdbm-partition/src/main/...rtition/impl/btree/jdbm
mavibot-partition/src/ma...tion/impl/btree/mavibot
277:380 (18%)
236:345 (18%)
view
24 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
150:204 (35%)
139:193 (37%)
view
24 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
204:256 (21%)
308:360 (20%)
view
24 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
306:358 (21%)
206:258 (20%)
view
24 x 2 jdbm-partition/src/main/...rtition/impl/btree/jdbm
mavibotv2-partition/src/...tion/impl/btree/mavibot
174:226 (40%)
206:258 (20%)
view
24 x 2 jdbm-partition/src/main/...rtition/impl/btree/jdbm
mavibot-partition/src/ma...tion/impl/btree/mavibot
174:226 (40%)
204:256 (21%)
view
24 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibot-partition/src/ma...tion/impl/btree/mavibot
204:256 (21%)
306:358 (21%)
view
24 x 2 mavibotv2-partition/src/...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
206:258 (20%)
308:360 (20%)
view
24 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
144:210 (16%)
144:210 (16%)
view
22 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:26 (81%)
1:26 (81%)
view
22 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:26 (81%)
1:26 (81%)
view
Duplicated Units
The list of top 50 duplicated units.
See data for all 81 unit duplicates...
Size#FoldersFilesLinesCode
50 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
197:269 
199:271 
view
49 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
299:369 
301:371 
view
38 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
230:282 
239:291 
view
38 x 2 protocol-ldap/src/main/j...p/handlers/sasl/cramMD5
protocol-ldap/src/main/j...handlers/sasl/digestMD5
76:123 
77:123 
view
33 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
283:321 
166:204 
view
31 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
1141:1179 
901:939 
view
30 x 2 xdbm-partition/src/main/...r/xdbm/search/evaluator
xdbm-partition/src/main/...r/xdbm/search/evaluator
117:179 
117:171 
view
28 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
118:154 
116:152 
view
28 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
122:154 
122:154 
view
27 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
217:250 
192:227 
view
27 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
256:289 
233:266 
view
26 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
jdbm-partition/src/main/...rtition/impl/btree/jdbm
372:407 
406:441 
view
26 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
281:310 
281:310 
view
26 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
316:346 
316:346 
view
23 x 2 protocol-ldap/src/main/j...ap/replication/provider
protocol-ldap/src/main/j...r/ldap/handlers/request
854:878 
347:371 
view
21 x 2 protocol-ldap/src/main/j...ap/replication/provider
protocol-ldap/src/main/j...r/ldap/handlers/request
881:928 
294:341 
view
21 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
256:280 
139:163 
view
20 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
335:359 
320:344 
view
19 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
204:226 
204:226 
view
19 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
232:254 
232:254 
view
19 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
154:179 
143:168 
view
18 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
104:123 
104:123 
view
18 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
127:146 
127:146 
view
15 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
293:315 
289:311 
view
15 x 2 protocol-dns/src/main/ja...y/server/dns/io/encoder
protocol-dns/src/main/ja...y/server/dns/io/encoder
82:103 
50:71 
view
15 x 2 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
353:373 
373:393 
view
15 x 2 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
380:398 
400:418 
view
14 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
164:182 
177:195 
view
14 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
102:121 
106:125 
view
14 x 2 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
315:332 
313:330 
view
14 x 2 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
339:356 
337:354 
view
14 x 2 xdbm-partition/src/main/...e/directory/server/xdbm
core-avl/src/main/java/o...ory/server/core/avltree
204:219 
200:215 
view
14 x 2 xdbm-partition/src/main/...e/directory/server/xdbm
core-avl/src/main/java/o...ory/server/core/avltree
225:240 
221:237 
view
13 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
130:147 
143:160 
view
13 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
157:173 
130:146 
view
13 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
195:211 
170:186 
view
12 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
98:113 
98:113 
view
12 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
101:117 
89:105 
view
12 x 3 xdbm-partition/src/main/...r/xdbm/search/evaluator
xdbm-partition/src/main/...r/xdbm/search/evaluator
xdbm-partition/src/main/...r/xdbm/search/evaluator
105:124 
100:119 
150:169 
view
12 x 2 xdbm-partition/src/main/...r/xdbm/search/evaluator
xdbm-partition/src/main/...r/xdbm/search/evaluator
57:76 
88:107 
view
12 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
788:801 
589:602 
view
11 x 3 protocol-ntp/src/main/ja...he/directory/server/ntp
protocol-dns/src/main/ja...he/directory/server/dns
protocol-ldap/src/main/j...e/directory/server/ldap
169:184 
151:166 
1764:1779 
view
11 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
59:72 
58:71 
view
11 x 2 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
293:308 
291:306 
view
11 x 2 jdbm-partition/src/main/...rtition/impl/btree/jdbm
jdbm-partition/src/main/...rtition/impl/btree/jdbm
160:172 
228:240 
view
10 x 2 protocol-ntp/src/main/ja...he/directory/server/ntp
protocol-dns/src/main/ja...he/directory/server/dns
150:163 
132:145 
view
10 x 2 ldif-partition/src/main/...ver/core/partition/ldif
server-config/src/main/j...directory/server/config
487:499 
157:171 
view
10 x 3 mavibot-partition/src/ma...tion/impl/btree/mavibot
xdbm-partition/src/main/...e/directory/server/xdbm
mavibotv2-partition/src/...tion/impl/btree/mavibot
253:266 
263:276 
251:264 
view
10 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
273:286 
270:283 
view
10 x 2 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
141:153 
142:154 
view