facebookresearch / music-translation
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
  • 9% duplication:
    • 4,674 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 458 duplicated lines
  • 62 duplicates
system9% (458 lines)
Duplication per Extension
cuh16% (362 lines)
cu16% (52 lines)
cpp4% (16 lines)
h11% (16 lines)
py<1% (12 lines)
Duplication per Component (primary)
src/nv-wavenet13% (446 lines)
src<1% (12 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 62 duplicates...
Size#FoldersFilesLinesCode
28 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_dualblock.cuh
nv_wavenet_singleblock.cuh
1:29 (9%)
1:29 (12%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_dualblock.cuh
nv_wavenet_persistent.cuh
1:26 (8%)
1:26 (3%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
matrix_math.cuh
nv_wavenet_dualblock.cuh
1:26 (19%)
1:26 (8%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_singleblock.cuh
nv_wavenet_util.cuh
1:26 (11%)
1:26 (34%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_dualblock.cuh
nv_wavenet_perf.cu
1:26 (8%)
1:26 (13%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet.cuh
softmax.cuh
1:26 (4%)
1:26 (14%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
softmax.cuh
wavenet_infer.cu
1:26 (14%)
1:26 (22%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_conversions.cuh
nv_wavenet_util.cuh
1:26 (27%)
1:26 (34%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_util.cuh
softmax.cuh
1:26 (34%)
1:26 (14%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cu
nv_wavenet_perf.cu
wavenet_infer.cu
1:26 (13%)
1:26 (22%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
matrix_math.cuh
nv_wavenet_util.cuh
1:26 (19%)
1:26 (34%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
matrix_math.cuh
nv_wavenet_conversions.cuh
1:26 (19%)
1:26 (27%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_persistent.cuh
wavenet_infer.cu
1:26 (3%)
1:26 (22%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet.cuh
nv_wavenet_dualblock.cuh
1:26 (4%)
1:26 (8%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_persistent.cuh
softmax.cuh
1:26 (3%)
1:26 (14%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_singleblock.cuh
wavenet_infer.cu
1:26 (11%)
1:26 (22%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
matrix_math.cuh
wavenet_infer.cu
1:26 (19%)
1:26 (22%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_dualblock.cuh
nv_wavenet_util.cuh
1:26 (8%)
1:26 (34%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
nv_wavenet_util.cuh
wavenet_infer.cu
1:26 (34%)
1:26 (22%)
view
26 x 2 src/nv-wavenet
src/nv-wavenet
cuh
matrix_math.cuh
softmax.cuh
1:26 (19%)
1:26 (14%)
view