GoogleCloudPlatform / cloud-code-samples
Unit Size

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

Intro
Learn more...
Unit Size Overall
0% | 0% | 31% | 28% | 39%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 0% | 75% | 10% | 14%
java0% | 0% | 19% | 30% | 50%
cs0% | 0% | 21% | 42% | 35%
py0% | 0% | 0% | 34% | 65%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
golang0% | 0% | 75% | 10% | 14%
java0% | 0% | 19% | 30% | 50%
dotnet0% | 0% | 21% | 42% | 35%
python0% | 0% | 0% | 34% | 65%
nodejs0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
42 8 1
37 4 3
33 1 1
31 6 0
28 5 0
26 5 0
24 9 1
24 1 1
24 5 1
24 3 1
22 5 1
22 5 1
21 4 0
19 4 1
19 2 2
19 2 0
18 12 1
16 2 1
16 2 1
16 3 1
14 2 0
13 2 1
13 2 2
13 3 0
12 2 1
12 1 5
12 1 5
12 1 0
12 3 1
12 1 1
12 2 2
11 3 1
11 3 1
11 2 1
11 2 0
11 2 0
11 4 1
10 1 1
10 4 1
10 3 1
10 1 2
9 3 1
9 2 1
9 1 3
8 1 5
8 1 5
8 2 1
8 1 0
8 1 0
8 1 1