microsoft / checkedc
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
  • 23% duplication:
    • 18,113 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,293 duplicated lines
  • 38 duplicates
system23% (4,293 lines)
Duplication per Extension
bib92% (4,011 lines)
tex1% (246 lines)
h6% (36 lines)
Duplication per Component (primary)
spec/bounds_safety17% (2,218 lines)
papers/dynamic_checks46% (2,039 lines)
include7% (36 lines)
ROOT0% (0 lines)
include/arpa0% (0 lines)
include/sys0% (0 lines)
papers/dynamic_checks/grammars0% (0 lines)
papers/dynamic_checks/scripts0% (0 lines)
papers/dynamic_checks/tables0% (0 lines)
spec/bounds_safety/pictures0% (0 lines)

Duplication Between Components (50+ lines)

G papers/dynamic_checks papers/dynamic_checks spec/bounds_safety spec/bounds_safety papers/dynamic_checks--spec/bounds_safety 4011

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 38 duplicates...
Size#FoldersFilesLinesCode
532 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
1772:2342 (24%)
1727:2297 (24%)
view
390 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
468:883 (17%)
309:724 (18%)
view
271 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
1244:1536 (12%)
1123:1414 (12%)
view
190 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
264:466 (8%)
99:301 (8%)
view
110 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
962:1083 (5%)
821:942 (5%)
view
85 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
175:264 (3%)
1:90 (3%)
view
85 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
1092:1183 (3%)
971:1062 (3%)
view
83 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
1539:1628 (3%)
1428:1517 (3%)
view
72 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
885:962 (3%)
733:810 (3%)
view
63 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
1692:1759 (2%)
1629:1696 (2%)
view
59 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
1628:1692 (2%)
1547:1611 (2%)
view
52 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
1186:1242 (2%)
1065:1121 (2%)
view
13 x 2 spec/bounds_safety
spec/bounds_safety
tex
span-compilation.tex
span-compilation.tex
98:110 (7%)
123:135 (7%)
view
12 x 2 papers/dynamic_checks
papers/dynamic_checks
tex
example.tex
example.tex
168:181 (3%)
238:251 (3%)
view
12 x 2 papers/dynamic_checks
papers/dynamic_checks
tex
example.tex
example.tex
168:181 (3%)
349:362 (3%)
view
12 x 2 papers/dynamic_checks
papers/dynamic_checks
tex
example.tex
example.tex
238:251 (3%)
349:362 (3%)
view
8 x 2 spec/bounds_safety
spec/bounds_safety
tex
span-compilation.tex
span-compilation.tex
146:153 (4%)
169:176 (4%)
view
8 x 2 spec/bounds_safety
spec/bounds_safety
tex
lessons.tex
related-work.tex
30:37 (2%)
785:792 (1%)
view
8 x 2 spec/bounds_safety
spec/bounds_safety
tex
span-compilation.tex
span-compilation.tex
155:162 (4%)
177:184 (4%)
view
8 x 2 papers/dynamic_checks
spec/bounds_safety
bib
checkedc.bib
sources.bib
1085:1092 (<1%)
944:951 (<1%)
view