pytorch / accimage
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
  • 5% duplication:
    • 476 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 24 duplicated lines
  • 6 duplicates
system5% (24 lines)
Duplication per Extension
c6% (24 lines)
Duplication per Component (primary)
ROOT5% (24 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
6 x 2 ROOT
ROOT
211:216 (2%)
232:237 (2%)
view
6 x 2 ROOT
ROOT
211:216 (2%)
222:227 (2%)
view
6 x 2 ROOT
ROOT
222:227 (2%)
232:237 (2%)
view
6 x 2 ROOT
ROOT
204:210 (2%)
232:237 (2%)
view
6 x 2 ROOT
ROOT
204:210 (2%)
211:216 (2%)
view
6 x 2 ROOT
ROOT
204:210 (2%)
222:227 (2%)
view