tensorflow / moonlight
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
  • 1% duplication:
    • 4,026 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 68 duplicated lines
  • 4 duplicates
system1% (68 lines)
Duplication per Extension
py1% (38 lines)
proto15% (30 lines)
Duplication per Component (primary)
moonlight/protobuf15% (30 lines)
moonlight/glyphs4% (26 lines)
moonlight/staves1% (12 lines)
moonlight0% (0 lines)
moonlight/conversions0% (0 lines)
moonlight/vision0% (0 lines)
moonlight/score0% (0 lines)
moonlight/util0% (0 lines)
moonlight/tools0% (0 lines)
moonlight/evaluation0% (0 lines)
moonlight/pipeline0% (0 lines)
moonlight/structure0% (0 lines)
moonlight/music0% (0 lines)
moonlight/training0% (0 lines)
moonlight/models0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
15 x 2 moonlight/protobuf
moonlight/protobuf
proto
groundtruth.proto
musicscore.proto
1:16 (29%)
1:16 (10%)
view
7 x 2 moonlight/glyphs
moonlight/glyphs
knn.py
knn_model.py
86:95 (11%)
90:99 (9%)
view
6 x 2 moonlight/glyphs
moonlight/glyphs
knn.py
knn_model.py
68:78 (9%)
67:77 (8%)
view
6 x 2 moonlight/staves
moonlight/staves
hough.py
hough.py
69:75 (6%)
169:178 (6%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 moonlight/glyphs
moonlight/glyphs
knn_model.py
knn.py
0:0 
0:0 
view