facebookexperimental / MIRAI
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
  • 10% duplication:
    • 30,519 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,310 duplicated lines
  • 707 duplicates
system10% (3,310 lines)
Duplication per Extension
rs11% (3,126 lines)
toml81% (126 lines)
h1% (58 lines)
Duplication per Component (primary)
checker/src10% (2,215 lines)
standard_contracts/src22% (839 lines)
checker95% (110 lines)
annotations/src9% (72 lines)
include1% (58 lines)
standard_contracts57% (8 lines)
annotations61% (8 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 707 duplicates...
Size#FoldersFilesLinesCode
42 x 2 checker
checker
1:47 (75%)
1:47 (75%)
view
32 x 2 checker/src
checker/src
384:419 (<1%)
552:587 (<1%)
view
26 x 2 checker/src
checker/src
646:671 (2%)
767:792 (2%)
view
25 x 2 checker/src
checker/src
6789:6813 (<1%)
647:671 (2%)
view
25 x 2 checker/src
checker/src
647:671 (2%)
1236:1260 (2%)
view
25 x 2 checker/src
checker/src
562:586 (<1%)
820:844 (1%)
view
25 x 2 checker/src
checker/src
768:792 (2%)
1236:1260 (2%)
view
25 x 2 checker/src
checker/src
561:585 (<1%)
5629:5653 (<1%)
view
25 x 2 checker/src
checker/src
394:418 (<1%)
820:844 (1%)
view
25 x 2 checker/src
checker/src
923:947 (2%)
1236:1260 (2%)
view
25 x 2 checker/src
checker/src
6789:6813 (<1%)
1236:1260 (2%)
view
25 x 2 checker/src
checker/src
6789:6813 (<1%)
768:792 (2%)
view
25 x 2 checker/src
checker/src
393:417 (<1%)
5629:5653 (<1%)
view
25 x 2 checker/src
checker/src
647:671 (2%)
923:947 (2%)
view
25 x 2 checker/src
checker/src
768:792 (2%)
923:947 (2%)
view
25 x 2 checker/src
checker/src
6789:6813 (<1%)
923:947 (2%)
view
24 x 2 checker/src
checker/src
5630:5653 (<1%)
820:843 (1%)
view
21 x 2 standard_contracts/src
standard_contracts/src
909:929 (<1%)
1013:1033 (<1%)
view
20 x 2 standard_contracts/src
standard_contracts/src
678:697 (<1%)
781:800 (<1%)
view
19 x 2 checker/src
checker/src
1712:1732 (<1%)
1741:1761 (<1%)
view
18 x 2 standard_contracts/src
standard_contracts/src
680:697 (<1%)
912:929 (<1%)
view
18 x 2 standard_contracts/src
standard_contracts/src
680:697 (<1%)
1016:1033 (<1%)
view
18 x 2 standard_contracts/src
standard_contracts/src
783:800 (<1%)
1016:1033 (<1%)
view
18 x 2 standard_contracts/src
standard_contracts/src
783:800 (<1%)
912:929 (<1%)
view
17 x 2 checker/src
checker/src
166:184 (<1%)
197:215 (<1%)
view
17 x 2 checker/src
checker/src
4272:4288 (<1%)
4282:4298 (<1%)
view
16 x 2 checker/src
checker/src
5630:5645 (<1%)
1236:1251 (1%)
view
16 x 2 checker/src
checker/src
5630:5645 (<1%)
768:783 (1%)
view
16 x 2 checker/src
checker/src
768:783 (1%)
820:835 (<1%)
view
16 x 2 checker/src
checker/src
394:409 (<1%)
923:938 (1%)
view
16 x 2 checker/src
checker/src
923:938 (1%)
820:835 (<1%)
view
16 x 2 checker/src
checker/src
562:577 (<1%)
923:938 (1%)
view
16 x 2 standard_contracts/src
standard_contracts/src
785:800 (<1%)
1045:1060 (<1%)
view
16 x 2 checker/src
checker/src
394:409 (<1%)
768:783 (1%)
view
16 x 2 standard_contracts/src
standard_contracts/src
914:929 (<1%)
1045:1060 (<1%)
view
16 x 2 standard_contracts/src
standard_contracts/src
682:697 (<1%)
1045:1060 (<1%)
view
16 x 2 checker/src
checker/src
5630:5645 (<1%)
923:938 (1%)
view
16 x 2 standard_contracts/src
standard_contracts/src
1018:1033 (<1%)
1045:1060 (<1%)
view
16 x 2 checker/src
checker/src
394:409 (<1%)
647:662 (1%)
view
16 x 2 checker/src
checker/src
5630:5645 (<1%)
6789:6804 (<1%)
view
16 x 2 checker/src
checker/src
394:409 (<1%)
1236:1251 (1%)
view
16 x 2 checker/src
checker/src
6789:6804 (<1%)
820:835 (<1%)
view
16 x 2 checker/src
checker/src
562:577 (<1%)
768:783 (1%)
view
16 x 2 checker/src
checker/src
647:662 (1%)
820:835 (<1%)
view
16 x 2 checker/src
checker/src
562:577 (<1%)
1236:1251 (1%)
view
16 x 2 checker/src
checker/src
394:409 (<1%)
6789:6804 (<1%)
view
16 x 2 checker/src
checker/src
1236:1251 (1%)
820:835 (<1%)
view
16 x 2 checker/src
checker/src
5630:5645 (<1%)
647:662 (1%)
view
16 x 2 checker/src
checker/src
562:577 (<1%)
6789:6804 (<1%)
view
16 x 2 checker/src
checker/src
562:577 (<1%)
647:662 (1%)
view