mapillary / mapillary-python-sdk
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 172 units with 1,196 lines of code in units (53.9% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (52 lines of code)
    • 10 medium size units (274 lines of code)
    • 19 small units (261 lines of code)
    • 142 very small units (609 lines of code)
0% | 4% | 22% | 21% | 50%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 4% | 22% | 21% | 50%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts0% | 100% | 0% | 0% | 0%
src/mapillary/utils0% | 0% | 30% | 28% | 41%
src/mapillary/models0% | 0% | 16% | 22% | 61%
src/mapillary/controller0% | 0% | 40% | 14% | 46%
src/mapillary/models/api0% | 0% | 25% | 41% | 32%
src/mapillary/config/api0% | 0% | 21% | 0% | 78%
ROOT0% | 0% | 0% | 46% | 53%
src/mapillary0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
52 8 0
40 17 3
37 15 1
30 21 3
28 3 2
26 10 2
25 1 0
23 12 3
22 2 1
22 6 4
21 2 1
19 3 1
18 2 1
18 10 4
16 14 1
15 5 4
15 5 4
14 2 1
14 6 3
13 5 2
13 1 1
13 2 1
12 6 2
12 7 3
12 3 2
12 5 1
12 5 3
11 6 2
11 4 3
11 6 1
10 3 1
10 4 3
10 2 1
10 5 2
10 2 2
9 1 2
9 1 0
9 2 0
9 6 1
9 3 4
9 5 2
9 2 2
9 1 2
8 3 1
8 1 1
8 1 1
7 1 2
7 3 2
7 3 2
7 6 2