apache / directory-server
Duplication

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

Intro
Learn more...
Duplication Overall
system13% (7,527 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
java13% (6,904 lines)
in45% (533 lines)
nsi7% (42 lines)
xml9% (30 lines)
spec20% (18 lines)
Duplication per Component (primary)
xdbm-partition21% (1,262 lines)
mavibot-partition74% (912 lines)
mavibotv2-partition61% (784 lines)
core-api9% (678 lines)
core-avl28% (663 lines)
jdbm-partition30% (631 lines)
interceptors7% (630 lines)
installers-maven-plugin21% (626 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)
i18n3% (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)
http-integration0% (0 lines)
ldap-client-test0% (0 lines)
server-annotations0% (0 lines)
service-builder0% (0 lines)
kerberos-codec0% (0 lines)
http-directory-bridge0% (0 lines)
ROOT0% (0 lines)
test-framework0% (0 lines)
syncrepl0% (0 lines)
core-integ0% (0 lines)
installers0% (0 lines)
interceptor-kerberos0% (0 lines)
core-constants0% (0 lines)
server-jndi0% (0 lines)

Duplication Between Components (50+ lines)

G mavibot-partition mavibot-partition mavibotv2-partition mavibotv2-partition mavibot-partition--mavibotv2-partition 1484 xdbm-partition xdbm-partition mavibot-partition--xdbm-partition 205 mavibotv2-partition--xdbm-partition 125 jdbm-partition jdbm-partition jdbm-partition--mavibot-partition 716 jdbm-partition--mavibotv2-partition 361 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--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 52

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 985 duplicates...
Size#FoldersFilesLinesCode
82 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
186:395 (65%)
186:395 (65%)
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
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
39 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
267:364 (34%)
269:366 (33%)
view
38 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
196:277 (41%)
205:286 (40%)
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 xdbm-partition/src/main/...re/partition/impl/btree
xdbm-partition/src/main/...re/partition/impl/btree
1620:1707 (2%)
1762:1849 (2%)
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 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
183:264 (28%)
185:266 (27%)
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
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
76:177 (25%)
76:177 (25%)
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
25 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
103:152 (49%)
103:152 (49%)
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 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
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
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 core-avl/src/main/java/o...ory/server/core/avltree
xdbm-partition/src/main/...e/directory/server/xdbm
75:123 (23%)
77:125 (20%)
view
20 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:22 (33%)
1:22 (33%)
view
20 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:22 (33%)
1:22 (33%)
view
20 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:22 (33%)
1:22 (33%)
view
20 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:22 (31%)
1:22 (33%)
view
20 x 2 installers-maven-plugin/.../installers/wrapper/src
installers-maven-plugin/.../installers/wrapper/src
1:22 (21%)
1:22 (33%)
view
Duplicated Units
The list of top 50 duplicated units.
See data for all 74 unit duplicates...
Size#FoldersFilesLinesCode
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
162:200 
309:347 
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
122:154 
122:154 
view
28 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
mavibotv2-partition/src/...tion/impl/btree/mavibot
118:154 
116:152 
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
27 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
653:686 
869:902 
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
26 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
jdbm-partition/src/main/...rtition/impl/btree/jdbm
372:407 
406:441 
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 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
135:159 
282:306 
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
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
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
18 x 2 core-avl/src/main/java/o...ory/server/core/avltree
core-avl/src/main/java/o...ory/server/core/avltree
483:502 
231:250 
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 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
373:393 
353:373 
view
15 x 2 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
400:418 
380:398 
view
15 x 2 protocol-dns/src/main/ja...y/server/dns/io/encoder
protocol-dns/src/main/ja...y/server/dns/io/encoder
50:71 
82:103 
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
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
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 2 xdbm-partition/src/main/...r/xdbm/search/evaluator
xdbm-partition/src/main/...r/xdbm/search/evaluator
57:76 
88:107 
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
150:169 
105:124 
100:119 
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 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 
1831:1846 
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 ldif-partition/src/main/...ver/core/partition/ldif
server-config/src/main/j...directory/server/config
489:501 
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 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 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
141:153 
142:154 
view
10 x 2 xdbm-partition/src/main/...rver/xdbm/search/cursor
xdbm-partition/src/main/...rver/xdbm/search/cursor
160:172 
161:173 
view
10 x 2 jdbm-partition/src/main/...rtition/impl/btree/jdbm
jdbm-partition/src/main/...rtition/impl/btree/jdbm
178:189 
246:257 
view
9 x 2 core-shared/src/main/jav...tory/server/core/shared
interceptors/admin/src/m...ctory/server/core/admin
130:140 
217:227 
view
9 x 4 mavibot-partition/src/ma...tion/impl/btree/mavibot
xdbm-partition/src/main/...ry/server/xdbm/impl/avl
mavibotv2-partition/src/...tion/impl/btree/mavibot
jdbm-partition/src/main/...rtition/impl/btree/jdbm
318:328 
340:350 
316:326 
353:363 
view
9 x 2 mavibot-partition/src/ma...tion/impl/btree/mavibot
jdbm-partition/src/main/...rtition/impl/btree/jdbm
354:366 
388:400 
view
9 x 3 mavibot-partition/src/ma...tion/impl/btree/mavibot
xdbm-partition/src/main/...ry/server/xdbm/impl/avl
jdbm-partition/src/main/...rtition/impl/btree/jdbm
430:440 
357:367 
464:474 
view
9 x 4 mavibot-partition/src/ma...tion/impl/btree/mavibot
xdbm-partition/src/main/...ry/server/xdbm/impl/avl
mavibotv2-partition/src/...tion/impl/btree/mavibot
jdbm-partition/src/main/...rtition/impl/btree/jdbm
474:484 
307:317 
486:496 
507:517 
view