Linux / Arch / Nds32
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
  • 7% duplication:
    • 7,486 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 557 duplicated lines
  • 63 duplicates
system7% (557 lines)
Duplication per Extension
c7% (357 lines)
h11% (150 lines)
S4% (50 lines)
Duplication per Component (primary)
math-emu24% (156 lines)
include11% (150 lines)
mm9% (143 lines)
kernel2% (76 lines)
lib9% (32 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 63 duplicates...
Size#FoldersFilesLinesCode
14 x 2 include/asm
include/asm
328:341 (4%)
348:361 (4%)
view
12 x 2 kernel
kernel
1304:1321 (1%)
1329:1348 (1%)
view
12 x 2 include/asm
include/asm
310:321 (4%)
366:377 (4%)
view
11 x 2 math-emu
math-emu
11:24 (73%)
11:24 (73%)
view
11 x 2 kernel
kernel
38:51 (5%)
68:81 (5%)
view
11 x 2 math-emu
math-emu
11:24 (73%)
11:24 (73%)
view
11 x 2 math-emu
math-emu
11:24 (73%)
11:24 (73%)
view
11 x 2 include/asm
include/asm
285:295 (3%)
363:373 (3%)
view
11 x 2 include/asm
include/asm
153:163 (6%)
246:256 (6%)
view
11 x 2 math-emu
math-emu
11:24 (73%)
11:24 (73%)
view
10 x 2 lib
lib
35:44 (27%)
35:44 (27%)
view
9 x 2 include/asm
include/uapi/asm
25:34 (25%)
13:21 (75%)
view
9 x 2 kernel
kernel
1:10 (5%)
1:10 (11%)
view
8 x 2 include/asm
include/asm
256:263 (2%)
354:361 (2%)
view
8 x 2 include/asm
include/asm
314:321 (2%)
354:361 (2%)
view
8 x 2 include/asm
include/asm
256:263 (2%)
370:377 (2%)
view
8 x 2 mm
mm
444:452 (2%)
488:496 (2%)
view
8 x 2 include/asm
include/asm
334:341 (2%)
370:377 (2%)
view
8 x 2 include/asm
include/asm
314:321 (2%)
334:341 (2%)
view
8 x 2 include/asm
include/asm
256:263 (2%)
314:321 (2%)
view
8 x 2 include/asm
include/asm
354:361 (2%)
370:377 (2%)
view
8 x 2 include/asm
include/asm
256:263 (2%)
334:341 (2%)
view
8 x 2 include/asm
include/asm
288:295 (2%)
310:317 (2%)
view
7 x 2 math-emu
math-emu
18:24 (46%)
18:24 (46%)
view
7 x 2 math-emu
math-emu
143:151 (2%)
236:245 (2%)
view
7 x 2 math-emu
math-emu
18:24 (46%)
18:24 (46%)
view
7 x 2 include/asm
include/asm
121:129 (4%)
215:223 (4%)
view
7 x 2 include/asm
include/asm
276:282 (2%)
292:298 (2%)
view
7 x 2 math-emu
math-emu
18:24 (46%)
18:24 (46%)
view
7 x 2 math-emu
math-emu
18:24 (46%)
18:24 (46%)
view
7 x 2 math-emu
math-emu
18:24 (46%)
18:24 (46%)
view
7 x 2 math-emu
math-emu
18:24 (46%)
18:24 (46%)
view
7 x 2 mm
mm
464:470 (2%)
489:496 (2%)
view
7 x 2 math-emu
math-emu
18:24 (46%)
18:24 (46%)
view
7 x 2 mm
mm
102:108 (1%)
134:140 (1%)
view
7 x 2 mm
mm
445:452 (2%)
464:470 (2%)
view
7 x 2 math-emu
math-emu
18:24 (46%)
18:24 (46%)
view
6 x 2 math-emu
math-emu
143:149 (1%)
259:266 (1%)
view
6 x 2 mm
mm
31:36 (2%)
69:74 (2%)
view
6 x 2 math-emu
math-emu
10:16 (60%)
10:16 (60%)
view
6 x 2 kernel
kernel
66:72 (2%)
81:88 (2%)
view
6 x 2 math-emu
math-emu
10:16 (60%)
10:16 (50%)
view
6 x 2 math-emu
math-emu
10:16 (60%)
11:17 (50%)
view
6 x 2 mm
mm
242:247 (1%)
377:382 (1%)
view
6 x 2 mm
mm
85:90 (1%)
111:116 (1%)
view
6 x 2 math-emu
math-emu
10:16 (50%)
10:16 (60%)
view
6 x 2 math-emu
math-emu
10:16 (60%)
11:17 (50%)
view
6 x 2 mm
mm
22:28 (1%)
46:55 (1%)
view
6 x 2 math-emu
math-emu
10:16 (60%)
11:17 (50%)
view
6 x 2 mm
mm
387:393 (1%)
461:467 (1%)
view