awslabs / document-understanding-solution
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 169 files with 14,001 lines of code.
    • 1 very long files (1,468 lines of code)
    • 2 long files (1,075 lines of code)
    • 8 medium size files (2,480 lines of codeclsfd_ftr_w_mp_ins)
    • 25 small files (3,487 lines of code)
    • 133 very small files (5,491 lines of code)
10% | 7% | 17% | 24% | 39%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts98% | 0% | 0% | 0% | 1%
js0% | 8% | 30% | 19% | 40%
py0% | 18% | 18% | 45% | 17%
scss0% | 0% | 0% | 29% | 70%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/lib98% | 0% | 0% | 0% | 1%
source/app/pages0% | 25% | 31% | 21% | 21%
source/lambda/textractor0% | 73% | 0% | 26% | 0%
deployment/document-understanding-cicd0% | 0% | 100% | 0% | 0%
source/app/utils0% | 0% | 95% | 0% | 4%
source/app/components0% | 0% | 5% | 27% | 66%
source/lambda/helper0% | 0% | 36% | 63% | 0%
source/lambda/apiprocessor0% | 0% | 39% | 41% | 18%
source/app/store0% | 0% | 32% | 0% | 67%
source/app/styles0% | 0% | 0% | 47% | 52%
source/lambda/jobresultprocessor0% | 0% | 0% | 100% | 0%
source/lambda/syncprocessor0% | 0% | 0% | 100% | 0%
source/lambda/documentbulkprocessor0% | 0% | 0% | 100% | 0%
source/lambda/documentprocessor0% | 0% | 0% | 0% | 100%
source/app/constants0% | 0% | 0% | 0% | 100%
source/lambda/asyncprocessor0% | 0% | 0% | 0% | 100%
source/lambda/customResourceKendraIndex0% | 0% | 0% | 0% | 100%
source/lambda/kendraIndexPoller0% | 0% | 0% | 0% | 100%
source0% | 0% | 0% | 0% | 100%
source/lambda/customResourceKendraDataSource0% | 0% | 0% | 0% | 100%
deployment/logger0% | 0% | 0% | 0% | 100%
source/lambda/joberrorhandler0% | 0% | 0% | 0% | 100%
deployment/custom-deployment0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cdk-textract-stack.ts
in source/lib
1468 1
index.js
in source/app/pages/styleguide
555 4
trp.py
in source/lambda/textractor/python
520 103
index.js
in deployment/document-understanding-cicd
409 9
view.js
in source/app/pages/documents
405 8
document.js
in source/app/utils
346 26
FileUpload.js
in source/app/components/FileUpload
299 12
index.js
in source/app/pages/documents
288 22
comprehendHelper.py
in source/lambda/helper/python
254 9
redact.py
in source/lambda/apiprocessor
248 17
actions.js
in source/app/store/entities/documents
231 1
_app.js
in source/app/pages
195 4
og.py
in source/lambda/textractor/python
191 10
PersonaInfoModal.js
in source/app/components/PersonaInfoModal
190 2
DocumentViewer.js
in source/app/components/DocumentViewer
186 4
helper.py
in source/lambda/helper/python
183 21
Header.scss
in source/app/components/Header
155 -
Button.scss
in source/app/components/Button
150 -
documents.scss
in source/app/pages/documents
148 -
lambda_function.py
in source/lambda/apiprocessor
142 5
lambda_function.py
in source/lambda/jobresultprocessor
137 5
FormInput.scss
in source/app/components/FormInput
134 -
global.scss
in source/app/styles
134 -
datastore.py
in source/lambda/helper/python
132 10
index.js
in source/app/pages
130 2
lambda_function.py
in source/lambda/syncprocessor
130 5
_typography.scss
in source/app/styles/shared
128 -
kendraHelper.py
in source/lambda/helper/python
127 4
SearchBar.js
in source/app/components/SearchBar
124 2
SampleCollections.js
in source/app/components/SampleCollections
121 3
search.py
in source/lambda/apiprocessor
115 3
SearchResults.scss
in source/app/components/SearchResults
113 -
KeyValueList.js
in source/app/components/KeyValueList
109 1
EntitiesCheckbox.js
in source/app/components/EntitiesCheckbox
107 2
lambda_function.py
in source/lambda/documentbulkprocessor
105 6
KendraResults.js
in source/app/components/KendraResults
101 2
lambda_function.py
in source/lambda/documentprocessor
100 5
actions.js
in source/app/store/entities/searchResults
96 -
SampleCollections.scss
in source/app/components/SampleCollections
96 -
Header.js
in source/app/components/Header
96 2
_grids.scss
in source/app/styles/shared
94 -
view.scss
in source/app/pages/documents
94 -
DocumentViewer.scss
in source/app/components/DocumentViewer
93 -
Pager.js
in source/app/components/Pager
91 3
FileUpload.scss
in source/app/components/FileUpload
90 -
SearchResults.js
in source/app/components/SearchResults
89 -
styleguide.scss
in source/app/pages/styleguide
85 -
ContextModal.scss
in source/app/components/ContextModal
83 -
Tabs.scss
in source/app/components/Tabs
82 -
KendraTopResults.js
in source/app/components/KendraTopResults
82 1
Files With Most Units (Top 20)
File# lines# units
trp.py
in source/lambda/textractor/python
520 103
document.js
in source/app/utils
346 26
index.js
in source/app/pages/documents
288 22
helper.py
in source/lambda/helper/python
183 21
redact.py
in source/lambda/apiprocessor
248 17
FileUpload.js
in source/app/components/FileUpload
299 12
datastore.py
in source/lambda/helper/python
132 10
og.py
in source/lambda/textractor/python
191 10
comprehendHelper.py
in source/lambda/helper/python
254 9
index.js
in deployment/document-understanding-cicd
409 9
view.js
in source/app/pages/documents
405 8
lambda_function.py
in source/lambda/documentbulkprocessor
105 6
lambda_function.py
in source/lambda/documentprocessor
100 5
lambda_function.py
in source/lambda/apiprocessor
142 5
lambda_function.py
in source/lambda/kendraIndexPoller
62 5
lambda_function.py
in source/lambda/syncprocessor
130 5
lambda_function.py
in source/lambda/jobresultprocessor
137 5
DocumentViewer.js
in source/app/components/DocumentViewer
186 4
index.js
in source/app/pages/styleguide
555 4
_app.js
in source/app/pages
195 4
Files With Long Lines (Top 20)

There are 28 files with lines longer than 120 characters. In total, there are 61 long lines.

File# lines# units# long lines
cdk-textract-stack.ts
in source/lib
1468 1 6
test-data.js
in source/app/constants
70 - 4
index.js
in source/app/pages/styleguide
555 4 4
index.js
in source/app/pages/documents
288 22 4
lambda_function.py
in source/lambda/syncprocessor
130 5 4
FormInput.js
in source/app/components/FormInput
62 - 3
view.js
in source/app/pages/documents
405 8 3
lambda_function.py
in source/lambda/apiprocessor
142 5 3
og.py
in source/lambda/textractor/python
191 10 3
lambda_function.py
in source/lambda/jobresultprocessor
137 5 3
actions.js
in source/app/store/entities/searchResults
96 - 2
DocumentListItem.js
in source/app/components/DocumentListItem
67 1 2
datastore.py
in source/lambda/helper/python
132 10 2
kendraHelper.py
in source/lambda/helper/python
127 4 2
lambda_function.py
in source/lambda/kendraIndexPoller
62 5 2
trp.py
in source/lambda/textractor/python
520 103 2
test-pre.js
in source
23 - 1
data.js
in source/app/store/entities/tracks
63 2 1
reducer.js
in source/app/store/ui
18 2 1
actions.js
in source/app/store/ui
18 - 1