facebookincubator / dispenso
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
  • 13% duplication:
    • 5,874 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 810 duplicated lines
  • 79 duplicates
system13% (810 lines)
Duplication per Extension
h13% (452 lines)
cpp16% (358 lines)
Duplication per Component (primary)
benchmarks19% (358 lines)
dispenso15% (315 lines)
dispenso/detail8% (137 lines)
cmake/modules0% (0 lines)
cmake0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 79 duplicates...
Size#FoldersFilesLinesCode
22 x 2 dispenso
dispenso
336:365 (8%)
411:440 (8%)
view
20 x 2 dispenso
dispenso
137:205 (8%)
411:432 (8%)
view
20 x 2 dispenso
dispenso
137:205 (8%)
336:357 (8%)
view
17 x 2 benchmarks
benchmarks
22:42 (22%)
23:43 (13%)
view
15 x 2 dispenso
dispenso
106:157 (13%)
258:309 (13%)
view
14 x 2 dispenso/detail
dispenso/detail
47:61 (7%)
69:83 (7%)
view
13 x 2 dispenso/detail
dispenso/detail
77:101 (7%)
256:280 (7%)
view
12 x 2 benchmarks
benchmarks
194:215 (9%)
191:212 (9%)
view
12 x 2 benchmarks
benchmarks
265:289 (6%)
191:212 (9%)
view
12 x 2 benchmarks
benchmarks
265:289 (6%)
194:215 (9%)
view
12 x 2 dispenso/detail
dispenso/detail
170:191 (6%)
259:280 (6%)
view
12 x 2 dispenso/detail
dispenso/detail
80:101 (6%)
170:191 (6%)
view
10 x 2 benchmarks
benchmarks
195:208 (3%)
346:359 (3%)
view
9 x 2 benchmarks
benchmarks
126:142 (11%)
191:207 (7%)
view
9 x 2 benchmarks
benchmarks
114:126 (3%)
153:165 (3%)
view
9 x 2 dispenso/detail
dispenso/detail
474:482 (2%)
488:496 (2%)
view
9 x 2 benchmarks
benchmarks
18:31 (11%)
14:27 (26%)
view
9 x 2 benchmarks
benchmarks
265:282 (5%)
126:142 (11%)
view
9 x 2 dispenso
dispenso
367:376 (2%)
507:515 (2%)
view
9 x 2 benchmarks
benchmarks
126:142 (11%)
194:210 (6%)
view
9 x 2 dispenso
dispenso
303:315 (2%)
438:448 (2%)
view
8 x 2 dispenso
dispenso
641:648 (2%)
690:697 (2%)
view
8 x 2 dispenso
dispenso
84:92 (12%)
99:107 (12%)
view
8 x 2 benchmarks
benchmarks
502:510 (1%)
637:645 (1%)
view
8 x 2 dispenso
dispenso
350:357 (1%)
371:378 (1%)
view
7 x 2 benchmarks
benchmarks
547:554 (1%)
674:681 (1%)
view
7 x 2 benchmarks
benchmarks
533:540 (1%)
586:593 (1%)
view
7 x 2 dispenso
dispenso
180:186 (6%)
203:209 (6%)
view
7 x 2 benchmarks
benchmarks
135:141 (2%)
174:180 (2%)
view
7 x 2 benchmarks
benchmarks
98:104 (2%)
135:141 (2%)
view
7 x 2 benchmarks
benchmarks
600:607 (1%)
674:681 (1%)
view
7 x 2 dispenso
dispenso
582:590 (1%)
652:659 (1%)
view
7 x 2 benchmarks
benchmarks
614:621 (1%)
687:694 (1%)
view
7 x 2 benchmarks
benchmarks
561:568 (1%)
614:621 (1%)
view
7 x 2 dispenso/detail
dispenso/detail
28:34 (3%)
69:75 (3%)
view
7 x 2 benchmarks
benchmarks
547:554 (1%)
600:607 (1%)
view
7 x 2 benchmarks
benchmarks
174:180 (3%)
145:151 (5%)
view
7 x 2 dispenso/detail
dispenso/detail
28:34 (3%)
47:53 (3%)
view
7 x 2 dispenso/detail
dispenso/detail
332:341 (1%)
368:377 (1%)
view
7 x 2 benchmarks
benchmarks
533:540 (1%)
661:668 (1%)
view
7 x 2 benchmarks
benchmarks
98:104 (2%)
174:180 (2%)
view
7 x 2 benchmarks
benchmarks
441:448 (1%)
502:509 (1%)
view
7 x 2 dispenso/detail
dispenso/detail
212:219 (2%)
230:237 (2%)
view
7 x 2 benchmarks
benchmarks
586:593 (1%)
661:668 (1%)
view
7 x 2 dispenso
dispenso
317:323 (1%)
667:673 (1%)
view
7 x 2 benchmarks
benchmarks
441:448 (1%)
637:644 (1%)
view
7 x 2 benchmarks
benchmarks
561:568 (1%)
687:694 (1%)
view
6 x 2 dispenso
dispenso
495:503 (1%)
520:528 (1%)
view
6 x 2 dispenso/detail
dispenso/detail
57:64 (3%)
238:245 (3%)
view
6 x 2 benchmarks
benchmarks
135:143 (4%)
161:167 (4%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 benchmarks
benchmarks
19:29 
15:25 
view