mapillary / mapillary-python-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
  • 11% duplication:
    • 2,101 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 234 duplicated lines
  • 15 duplicates
system11% (234 lines)
Duplication per Extension
py11% (234 lines)
Duplication per Component (primary)
src/mapillary/controller26% (126 lines)
src/mapillary/models/api16% (42 lines)
src/mapillary/config/api18% (42 lines)
src/mapillary/utils2% (12 lines)
src/mapillary/models3% (12 lines)
ROOT0% (0 lines)
scripts0% (0 lines)
src/mapillary/config0% (0 lines)
src/mapillary0% (0 lines)
Longest Duplicates
The list of 15 longest duplicates.
See data for all 15 duplicates...
Size#FoldersFilesLinesCode
37 x 2 src/mapillary/controller
src/mapillary/controller
580:622 (10%)
762:805 (10%)
view
14 x 2 src/mapillary/models/api
src/mapillary/models/api
236:252 (6%)
311:327 (6%)
view
14 x 2 src/mapillary/controller
src/mapillary/controller
555:576 (4%)
737:758 (4%)
view
9 x 2 src/mapillary/controller
src/mapillary/controller
541:552 (2%)
723:734 (2%)
view
8 x 2 src/mapillary/config/api
src/mapillary/config/api
110:136 (12%)
167:195 (12%)
view
8 x 2 src/mapillary/config/api
src/mapillary/config/api
110:136 (12%)
138:165 (12%)
view
8 x 2 src/mapillary/config/api
src/mapillary/config/api
138:165 (12%)
167:195 (12%)
view
7 x 2 src/mapillary/models/api
src/mapillary/models/api
488:495 (3%)
534:541 (3%)
view
6 x 2 src/mapillary/controller
src/mapillary/controller
156:161 (1%)
800:805 (1%)
view
6 x 2 src/mapillary/config/api
src/mapillary/config/api
29:53 (9%)
82:108 (9%)
view
6 x 2 src/mapillary/config/api
src/mapillary/config/api
29:53 (9%)
55:80 (9%)
view
6 x 2 src/mapillary/controller
src/mapillary/controller
156:161 (1%)
617:622 (1%)
view
6 x 2 src/mapillary/utils
src/mapillary/utils
172:177 (4%)
206:211 (4%)
view
6 x 2 src/mapillary/models
src/mapillary/models
230:235 (5%)
238:243 (5%)
view
6 x 2 src/mapillary/config/api
src/mapillary/config/api
55:80 (9%)
82:108 (9%)
view