huggingface / transformers
Unit Size

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

Intro
Learn more...
Unit Size Overall
3% | 6% | 22% | 31% | 36%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py3% | 6% | 22% | 31% | 36%
cpp0% | 34% | 0% | 47% | 17%
pyx0% | 0% | 90% | 0% | 9%
h0% | 0% | 0% | 44% | 55%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src3% | 6% | 21% | 31% | 36%
utils11% | 14% | 38% | 20% | 15%
templates48% | 25% | 14% | 7% | 3%
benchmark0% | 30% | 13% | 16% | 40%
scripts0% | 0% | 76% | 0% | 23%
ROOT0% | 0% | 0% | 33% | 66%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
466 135 1
390 7 2
371 38 1
332 26 3
306 39 4
253 27 4
230 47 1
217 35 3
212 41 3
204 9 3
201 69 2
200 94 2
198 25 1
185 10 1
185 23 4
183 1 2
182 7 3
172 58 4
169 6 2
167 14 2
165 51 2
161 33 7
160 10 1
160 19 0
159 44 2
158 25 4
154 9 1
147 30 3
145 10 3
144 36 1
144 56 4
142 30 3
139 40 3
137 4 4
137 4 4
136 4 4
133 26 3
133 45 3
132 17 3
131 14 5
130 34 4
128 25 3
128 45 3
125 8 2
125 44 3
123 17 4
122 5 3
122 28 4
122 28 4
121 60 1