GoogleCloudPlatform / document-ai-samples
Unit Size

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

Intro
Learn more...
Unit Size Overall
9% | 9% | 26% | 21% | 33%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py9% | 10% | 23% | 21% | 36%
js14% | 3% | 20% | 27% | 34%
java0% | 18% | 51% | 19% | 9%
ts0% | 15% | 56% | 13% | 14%
cs0% | 0% | 70% | 0% | 29%
go0% | 0% | 71% | 0% | 28%
gs0% | 0% | 45% | 22% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
bq-connector38% | 7% | 19% | 11% | 21%
document-json-explorer40% | 9% | 32% | 8% | 8%
tax-processing-pipeline-python33% | 0% | 14% | 25% | 26%
document_ai_warehouse0% | 17% | 26% | 21% | 34%
document-processing-workflows0% | 46% | 22% | 16% | 14%
community0% | 9% | 11% | 29% | 49%
web-app-demo0% | 13% | 60% | 11% | 15%
classify-split-extract-workflow0% | 14% | 35% | 12% | 37%
ROOT0% | 26% | 35% | 29% | 9%
sql-pdf-python0% | 59% | 0% | 15% | 26%
web-app-pix2info-python0% | 0% | 20% | 36% | 43%
incubator-tools0% | 0% | 28% | 21% | 49%
fraud-detection-python0% | 0% | 42% | 42% | 15%
pdf-splitter-python0% | 0% | 75% | 0% | 24%
cx-content-moderation0% | 0% | 71% | 0% | 28%
apps-script-google-drive0% | 0% | 45% | 22% | 31%
filter-hitl-language0% | 0% | 0% | 48% | 52%
pdf-embedded-text0% | 0% | 0% | 0% | 100%
extract-tables0% | 0% | 0% | 0% | 100%
extract-languages0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
230 3 0
160 16 1
158 27 1
109 9 1
106 6 1
88 31 1
82 2 0
78 16 1
75 11 1
66 6 0
65 12 2
65 13 1
63 7 2
63 4 1
59 6 1
57 4 1
50 12 1
50 7 2
50 8 1
49 11 1
49 7 1
48 16 2
48 18 3
48 2 3
47 8 1
47 7 1
46 9 2
46 9 0
44 2 2
44 8 2
42 5 1
40 14 1
40 2 1
37 11 2
37 6 1
37 2 0
37 2 0
36 12 0
36 2 1
35 5 1
35 6 1
34 6 1
34 5 1
33 11 1
32 7 2
32 6 1
32 1 1
32 2 1
31 9 1
31 5 2