korosuke613 / atcoder
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 105 units with 1,517 lines of code in units (61.6% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (82 lines of code)
    • 18 medium size units (531 lines of code)
    • 42 small units (650 lines of code)
    • 44 very small units (254 lines of code)
0% | 5% | 35% | 42% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs0% | 5% | 35% | 42% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
contests0% | 5% | 35% | 43% | 15%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
82 14 0
46 1 0
44 12 1
41 9 0
38 6 0
37 9 0
36 16 0
28 7 0
26 3 1
25 8 0
25 4 0
24 6 0
24 3 0
24 1 0
23 6 0
23 5 0
23 4 1
22 4 0
22 4 1
20 4 0
20 1 1
20 5 0
20 3 1
19 3 0
19 2 1
19 3 1
18 5 0
18 3 0
18 3 0
18 4 0
17 4 0
17 4 0
17 4 0
17 4 0
17 6 0
17 3 0
16 3 0
16 3 1
16 2 0
16 3 0
15 2 1
15 2 0
15 3 0
15 2 0
15 3 1
14 1 0
14 3 0
14 3 0
13 2 0
13 2 1