mapillary / metropolis_sdk
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:
    • 1,780 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 92 duplicated lines
  • 10 duplicates
system5% (92 lines)
Duplication per Extension
py3% (54 lines)
ipynb10% (38 lines)
Duplication per Component (primary)
metropolis6% (40 lines)
ROOT9% (38 lines)
metropolis/utils1% (14 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
11 x 2 ROOT
ROOT
271:281 (3%)
292:302 (3%)
view
10 x 2 ROOT
ROOT
250:259 (2%)
293:302 (2%)
view
10 x 2 ROOT
ROOT
250:259 (2%)
272:281 (2%)
view
8 x 2 metropolis
metropolis
767:776 (1%)
910:919 (1%)
view
7 x 2 metropolis/utils
metropolis/utils
243:249 (1%)
263:269 (1%)
view
6 x 2 ROOT
ROOT
272:277 (1%)
328:333 (1%)
view
6 x 2 metropolis
metropolis
614:619 (<1%)
779:784 (<1%)
view
6 x 2 metropolis
metropolis
442:447 (<1%)
959:966 (<1%)
view
6 x 2 ROOT
ROOT
293:298 (1%)
328:333 (1%)
view
6 x 2 ROOT
ROOT
250:255 (1%)
328:333 (1%)
view