GoogleCloudPlatform / generative-ai
Unit Size

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

Intro
Learn more...
Unit Size Overall
11% | 12% | 31% | 20% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py18% | 11% | 26% | 17% | 24%
tsx0% | 41% | 36% | 11% | 11%
dart0% | 17% | 46% | 16% | 19%
ts0% | 5% | 42% | 25% | 26%
gs0% | 21% | 20% | 39% | 18%
js0% | 0% | 40% | 29% | 29%
cpp0% | 0% | 33% | 41% | 24%
java0% | 0% | 54% | 11% | 34%
cc0% | 0% | 37% | 28% | 34%
swift0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
gemini12% | 10% | 30% | 21% | 24%
ROOT34% | 17% | 31% | 10% | 5%
genkit0% | 35% | 19% | 22% | 23%
vision0% | 16% | 48% | 13% | 22%
search0% | 11% | 42% | 12% | 33%
audio0% | 0% | 44% | 22% | 33%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
275 2 2
274 7 1
124 8 0
123 13 1
123 9 1
113 2 0
110 4 1
109 3 0
102 2 0
94 5 1
79 8 6
78 7 1
73 13 0
68 5 1
67 9 1
66 12 0
65 8 4
64 4 1
61 15 0
61 2 0
61 10 0
61 20 1
60 2 1
58 4 1
57 5 2
55 11 0
55 6 4
55 2 0
54 10 2
52 2 0
51 2 3
49 9 4
48 11 2
46 3 1
46 5 0
46 3 1
46 7 1
44 4 3
44 4 0
44 3 1
44 2 5
43 1 3
43 2 0
43 2 0
43 3 1
43 2 1
43 5 2
43 2 5
41 3 0
41 8 1