huggingface / text-generation-inference
Unit Size

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

Intro
Learn more...
Unit Size Overall
8% | 11% | 34% | 22% | 23%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py5% | 10% | 34% | 23% | 25%
rs20% | 21% | 32% | 14% | 10%
hpp0% | 0% | 18% | 46% | 34%
cpp0% | 0% | 0% | 50% | 50%
js0% | 0% | 0% | 78% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
server7% | 9% | 34% | 23% | 23%
launcher58% | 4% | 20% | 11% | 4%
backends3% | 12% | 35% | 23% | 25%
router9% | 33% | 41% | 8% | 7%
benchmark0% | 27% | 25% | 29% | 17%
load_tests0% | 30% | 9% | 39% | 20%
ROOT0% | 0% | 87% | 0% | 12%
clients0% | 0% | 8% | 55% | 36%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
275 30 0
246 42 33
220 21 2
184 32 1
178 32 2
178 32 2
165 16 2
164 21 7
157 12 2
153 30 2
145 9 2
144 15 4
135 11 4
130 11 4
119 18 5
114 17 5
111 15 5
108 17 7
108 5 14
101 14 2
100 14 2
95 12 2
94 8 0
92 14 2
90 13 4
90 10 2
90 10 2
89 4 2
88 27 2
86 22 3
82 11 2
81 4 0
78 21 3
78 21 3
76 5 2
76 5 2
75 10 2
75 15 3
74 16 3
74 19 3
70 12 3
68 7 1
68 4 7
67 14 2
67 14 2
67 18 4
67 15 3
66 6 4
66 4 0
65 2 0