facebookresearch / BinauralSDM
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
  • 4% duplication:
    • 1,128 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 54 duplicated lines
  • 5 duplicates
system4% (54 lines)
Duplication per Extension
m4% (54 lines)
Duplication per Component (primary)
Src3% (42 lines)
Src/ReverbSynthesis26% (12 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
11 x 2 Src
Src
SaveBRIR.m
SaveRenderingStructs.m
14:26 (35%)
10:22 (52%)
view
7 x 2 Src
Src
create_MicGeometry.m
create_MicGeometry.m
57:63 (10%)
65:71 (10%)
view
6 x 2 Src
Src
create_MicGeometry.m
create_MicGeometry.m
49:54 (9%)
65:70 (9%)
view
6 x 2 Src/ReverbSynthesis
Src/ReverbSynthesis
allpass_filter.m
comb_filter.m
5:11 (50%)
6:12 (50%)
view
6 x 2 Src
Src
create_MicGeometry.m
create_MicGeometry.m
49:54 (9%)
57:62 (9%)
view