Linux / Lib
Duplication

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

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 34% duplication:
    • 112,290 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 38,200 duplicated lines
  • 220,661 duplicates
system34% (38,200 lines)
Duplication per Extension
c35% (37,959 lines)
h4% (186 lines)
uc14% (55 lines)
Duplication per Component (primary)
fonts83% (28,090 lines)
crypto39% (5,463 lines)
ROOT6% (2,164 lines)
raid629% (872 lines)
zstd5% (828 lines)
mpi10% (443 lines)
lzo15% (79 lines)
zlib_deflate5% (64 lines)
lz43% (56 lines)
zlib_inflate3% (40 lines)
math7% (38 lines)
vdso9% (22 lines)
kunit1% (21 lines)
8422% (20 lines)
dim0% (0 lines)
zlib_dfltcc0% (0 lines)
xz0% (0 lines)
pldmfw0% (0 lines)
reed_solomon0% (0 lines)

Duplication Between Components (50+ lines)

G crypto crypto fonts fonts crypto--fonts 432

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 220,661 duplicates...
Size#FoldersFilesLinesCode
403 x 2 fonts
fonts
1279:1781 (19%)
1284:1786 (19%)
view
271 x 2 fonts
fonts
1122:1482 (17%)
1130:1490 (17%)
view
265 x 2 fonts
fonts
1122:1474 (17%)
1138:1490 (17%)
view
259 x 2 fonts
fonts
1122:1466 (16%)
1146:1490 (16%)
view
257 x 2 fonts
fonts
18:338 (12%)
23:343 (12%)
view
255 x 2 crypto
crypto
1655:1909 (2%)
7542:7796 (2%)
view
253 x 2 crypto
crypto
7542:7794 (2%)
8072:8324 (2%)
view
253 x 2 crypto
crypto
1401:1653 (2%)
8328:8580 (2%)
view
253 x 2 crypto
crypto
1655:1907 (2%)
8072:8324 (2%)
view
253 x 2 crypto
crypto
1401:1653 (2%)
7798:8050 (2%)
view
253 x 2 crypto
crypto
7798:8050 (2%)
8328:8580 (2%)
view
253 x 2 fonts
fonts
1122:1458 (16%)
1154:1490 (16%)
view
247 x 2 fonts
fonts
1122:1450 (15%)
1162:1490 (15%)
view
245 x 2 crypto
crypto
1142:1386 (2%)
7039:7283 (2%)
view
243 x 2 crypto
crypto
898:1140 (2%)
7285:7527 (2%)
view
241 x 2 fonts
fonts
1122:1442 (15%)
1170:1490 (15%)
view
235 x 2 fonts
fonts
1122:1434 (15%)
1178:1490 (15%)
view
229 x 2 fonts
fonts
1122:1426 (14%)
1186:1490 (14%)
view
223 x 2 fonts
fonts
1122:1418 (14%)
1194:1490 (14%)
view
217 x 2 fonts
fonts
1122:1410 (14%)
1202:1490 (14%)
view
211 x 2 fonts
fonts
1122:1402 (13%)
1210:1490 (13%)
view
205 x 2 fonts
fonts
1122:1394 (13%)
1218:1490 (13%)
view
199 x 2 fonts
fonts
1122:1386 (12%)
1226:1490 (12%)
view
193 x 2 fonts
fonts
50:338 (12%)
1237:1493 (12%)
view
193 x 2 fonts
fonts
1122:1378 (12%)
1234:1490 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1157:1410 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1125:1378 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1149:1402 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1133:1386 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1141:1394 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1221:1474 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1229:1482 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1205:1458 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1213:1466 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1165:1418 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1173:1426 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1197:1450 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1181:1434 (12%)
view
192 x 2 fonts
fonts
50:334 (12%)
1189:1442 (12%)
view
187 x 2 fonts
fonts
55:334 (12%)
1122:1370 (12%)
view
187 x 2 fonts
fonts
1122:1370 (12%)
1242:1490 (12%)
view
186 x 2 fonts
fonts
50:325 (12%)
59:334 (12%)
view
186 x 2 fonts
fonts
50:325 (12%)
1245:1490 (12%)
view
183 x 2 fonts
fonts
64:339 (11%)
1890:2134 (11%)
view
182 x 2 fonts
fonts
2238:2465 (8%)
2243:2470 (8%)
view
182 x 2 fonts
fonts
1121:1362 (11%)
1889:2130 (11%)
view
182 x 2 fonts
fonts
1250:1493 (11%)
1890:2133 (11%)
view
181 x 2 fonts
fonts
64:334 (11%)
1122:1362 (11%)
view
181 x 2 fonts
fonts
1194:1434 (11%)
1890:2130 (11%)
view
181 x 2 fonts
fonts
1154:1394 (11%)
1890:2130 (11%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
20 x 2 crypto
crypto
627:647 
655:675 
view
15 x 2 zstd/compress
zstd/compress
606:621 
795:810 
view
8 x 2 raid6
raid6
34:42 
14:22 
view