Linux / Arch / Alpha
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
  • 15% duplication:
    • 30,596 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,661 duplicated lines
  • 498 duplicates
system15% (4,661 lines)
Duplication per Extension
c10% (1,986 lines)
S28% (1,755 lines)
h15% (920 lines)
Duplication per Component (primary)
kernel11% (1,946 lines)
lib29% (1,664 lines)
include16% (920 lines)
boot13% (131 lines)
math-emu0% (0 lines)
mm0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 498 duplicates...
Size#FoldersFilesLinesCode
87 x 2 include/asm
include/asm
264:350 (10%)
695:781 (10%)
view
55 x 2 include/asm
include/asm
167:221 (6%)
569:623 (6%)
view
43 x 2 lib
lib
47:94 (22%)
57:104 (18%)
view
39 x 2 lib
lib
6:46 (20%)
6:46 (16%)
view
36 x 2 boot
boot
31:107 (42%)
25:101 (36%)
view
29 x 2 include/asm
include/asm
113:141 (3%)
491:519 (3%)
view
28 x 2 include/asm
include/asm
232:259 (13%)
301:328 (13%)
view
25 x 2 lib
lib
5:29 (7%)
5:29 (8%)
view
23 x 2 lib
lib
54:76 (15%)
62:84 (15%)
view
23 x 2 lib
lib
104:126 (15%)
112:134 (15%)
view
23 x 2 include/asm
include/asm
89:111 (2%)
467:489 (2%)
view
22 x 2 kernel
kernel
165:191 (5%)
142:168 (8%)
view
22 x 2 kernel
kernel
142:168 (8%)
408:434 (5%)
view
22 x 2 kernel
kernel
129:155 (10%)
111:137 (25%)
view
22 x 2 kernel
kernel
129:155 (10%)
165:191 (5%)
view
22 x 2 kernel
kernel
111:137 (25%)
408:434 (5%)
view
22 x 2 kernel
kernel
165:191 (5%)
408:434 (5%)
view
22 x 2 kernel
kernel
129:155 (10%)
408:434 (5%)
view
22 x 2 kernel
kernel
111:137 (25%)
142:168 (8%)
view
22 x 2 kernel
kernel
129:155 (10%)
142:168 (8%)
view
22 x 2 kernel
kernel
111:137 (25%)
165:191 (5%)
view
21 x 2 lib
lib
25:49 (47%)
30:54 (30%)
view
20 x 2 include/asm
include/asm
34:53 (2%)
394:413 (2%)
view
20 x 2 kernel
kernel
31:62 (33%)
390:425 (8%)
view
19 x 2 lib
lib
339:361 (3%)
527:549 (3%)
view
19 x 2 kernel
kernel
551:569 (2%)
914:932 (2%)
view
19 x 2 lib
lib
22:44 (7%)
30:52 (5%)
view
19 x 2 lib
lib
161:183 (3%)
339:361 (3%)
view
19 x 2 kernel
kernel
503:521 (2%)
858:876 (2%)
view
19 x 2 lib
lib
13:35 (16%)
24:45 (9%)
view
19 x 2 kernel
kernel
527:545 (2%)
886:904 (2%)
view
19 x 2 lib
lib
161:183 (3%)
527:549 (3%)
view
18 x 2 kernel
kernel
114:138 (4%)
357:381 (4%)
view
18 x 2 lib
lib
4:21 (39%)
4:22 (19%)
view
18 x 2 lib
lib
21:42 (41%)
175:196 (10%)
view
18 x 2 kernel
kernel
91:115 (7%)
357:381 (4%)
view
18 x 2 kernel
kernel
114:138 (4%)
91:115 (7%)
view
17 x 2 kernel
kernel
104:127 (8%)
85:109 (19%)
view
17 x 2 kernel
kernel
571:588 (3%)
148:165 (6%)
view
17 x 2 kernel
kernel
117:140 (6%)
383:406 (4%)
view
17 x 2 kernel
kernel
571:588 (3%)
171:188 (4%)
view
17 x 2 kernel
kernel
104:127 (8%)
140:163 (4%)
view
17 x 2 kernel
kernel
85:109 (19%)
140:163 (4%)
view
17 x 2 kernel
kernel
104:127 (8%)
117:140 (6%)
view
17 x 2 lib
lib
5:21 (6%)
5:21 (7%)
view
17 x 2 kernel
kernel
140:163 (4%)
383:406 (4%)
view
17 x 2 kernel
kernel
571:588 (3%)
414:431 (4%)
view
17 x 2 kernel
kernel
85:109 (19%)
383:406 (4%)
view
17 x 2 kernel
kernel
85:109 (19%)
117:140 (6%)
view
17 x 2 kernel
kernel
135:152 (8%)
571:588 (3%)
view
Duplicated Units
The list of top 11 duplicated units.
See data for all 11 unit duplicates...
Size#FoldersFilesLinesCode
18 x 2 include/asm
include/asm
97:117 
119:139 
view
17 x 2 include/asm
include/asm
57:75 
77:95 
view
15 x 2 include/asm
include/asm
21:36 
38:53 
view
12 x 2 lib
lib
55:76 
18:39 
view
7 x 2 include/asm
kernel
319:326 
26:33 
view
7 x 2 include/asm
kernel
362:369 
35:42 
view
7 x 2 include/asm
kernel
409:416 
155:162 
view
7 x 2 include/asm
kernel
418:425 
164:171 
view
7 x 2 include/asm
kernel
461:468 
173:180 
view
7 x 2 include/asm
kernel
470:477 
182:189 
view
7 x 2 kernel
kernel
19:26 
28:35 
view