facebookresearch / demucs
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
  • 2% duplication:
    • 3,455 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 94 duplicated lines
  • 8 duplicates
system2% (94 lines)
Duplication per Extension
py2% (80 lines)
yaml5% (14 lines)
Duplication per Component (primary)
demucs2% (58 lines)
demucs/grids22% (22 lines)
demucs/remote70% (14 lines)
ROOT0% (0 lines)
tools0% (0 lines)
conf0% (0 lines)
conf/svd0% (0 lines)
conf/variant0% (0 lines)
conf/dset0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
8 x 2 demucs/grids
demucs/grids
mdx.py
mdx_refine.py
17:28 (57%)
15:25 (47%)
view
8 x 2 demucs
demucs
hdemucs.py
hdemucs.py
69:76 (1%)
242:249 (1%)
view
8 x 2 demucs
demucs
demucs.py
hdemucs.py
251:259 (2%)
376:384 (1%)
view
7 x 2 demucs/remote
demucs/remote
mdx.yaml
mdx_q.yaml
2:8 (87%)
2:8 (87%)
view
7 x 2 demucs
demucs
hdemucs.py
hdemucs.py
124:130 (1%)
295:301 (1%)
view
6 x 2 demucs
demucs
demucs.py
hdemucs.py
309:314 (2%)
436:441 (1%)
view
6 x 2 demucs/grids
demucs/grids
mdx.py
mdx_extra.py
17:22 (42%)
16:21 (35%)
view
6 x 2 demucs/grids
demucs/grids
mdx_extra.py
mdx_refine.py
16:21 (35%)
15:20 (35%)
view