aws-samples / aws-ai-solution-kit
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 34 files with 2,271 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (491 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,210 lines of code)
    • 23 very small files (570 lines of code)
0% | 0% | 21% | 53% | 25%
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
py0% | 0% | 20% | 56% | 23%
ts0% | 0% | 24% | 50% | 24%
yml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/infer-ocr/src0% | 0% | 31% | 61% | 7%
source/lib0% | 0% | 62% | 37% | 0%
source/super-resolution-gpu0% | 0% | 0% | 100% | 0%
source/super-resolution-inf10% | 0% | 0% | 100% | 0%
source/super-resolution-gpu/container0% | 0% | 0% | 100% | 0%
source/super-resolution-inf1/container0% | 0% | 0% | 100% | 0%
source/infer-ocr0% | 0% | 0% | 0% | 100%
source/human-seg/src0% | 0% | 0% | 0% | 100%
source/super-resolution/src0% | 0% | 0% | 0% | 100%
source/porn-image/src0% | 0% | 0% | 0% | 100%
source/porn-image0% | 0% | 0% | 0% | 100%
source/super-resolution0% | 0% | 0% | 0% | 100%
source/lib/s3_to_efs0% | 0% | 0% | 0% | 100%
source/human-seg0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
source0% | 0% | 0% | 0% | 100%
source/lib/custom_resource0% | 0% | 0% | 0% | 100%
Longest Files (Top 34)
File# lines# units
main.py
in source/infer-ocr/src
262 13
efs-model-lambda.ts
in source/lib
229 1
super-resolution-gpu.ts
in source/super-resolution-gpu
173 1
super-resolution-inf1.ts
in source/super-resolution-inf1
172 1
operators.py
in source/infer-ocr/src/imaug
156 13
ai-kits-rest-api.ts
in source/lib
137 2
infer_ocr_app.py
in source/infer-ocr/src
126 5
db_postprocess.py
in source/infer-ocr/src/postprocess
116 6
rec_postprocess.py
in source/infer-ocr/src/postprocess
112 12
predictor.py
in source/super-resolution-gpu/container/model
109 5
predictor.py
in source/super-resolution-inf1/container/model
109 5
infer-ocr.ts
in source/infer-ocr
82 1
human_seg_app.py
in source/human-seg/src
62 1
super_resolution_app.py
in source/super-resolution/src
62 2
porn_image_app.py
in source/porn-image/src
58 1
porn-image.ts
in source/porn-image
49 1
s3_to_efs.py
in source/lib/s3_to_efs
48 3
super-resolution.ts
in source/super-resolution
48 1
human-seg.ts
in source/human-seg
47 1
__init__.py
in source/infer-ocr/src/imaug
26 2
__init__.py
in source/infer-ocr/src/postprocess
21 1
buildspec.yml
in root
20 -
cls_postprocess.py
in source/infer-ocr/src/postprocess
12 2
custom-resource.py
in source/lib/custom_resource
10 1
main.ts
in source
10 -
jest.config.js
in root
7 -
__init__.py
in source
1 -
__init__.py
in source/porn-image
1 -
__init__.py
in source/porn-image/src
1 -
__init__.py
in source/human-seg
1 -
__init__.py
in source/human-seg/src
1 -
__init__.py
in source/infer-ocr/src
1 -
__init__.py
in source/super-resolution
1 -
__init__.py
in source/super-resolution/src
1 -
Files With Most Units (Top 20)
File# lines# units
operators.py
in source/infer-ocr/src/imaug
156 13
main.py
in source/infer-ocr/src
262 13
rec_postprocess.py
in source/infer-ocr/src/postprocess
112 12
db_postprocess.py
in source/infer-ocr/src/postprocess
116 6
infer_ocr_app.py
in source/infer-ocr/src
126 5
predictor.py
in source/super-resolution-gpu/container/model
109 5
predictor.py
in source/super-resolution-inf1/container/model
109 5
s3_to_efs.py
in source/lib/s3_to_efs
48 3
ai-kits-rest-api.ts
in source/lib
137 2
__init__.py
in source/infer-ocr/src/imaug
26 2
cls_postprocess.py
in source/infer-ocr/src/postprocess
12 2
super_resolution_app.py
in source/super-resolution/src
62 2
custom-resource.py
in source/lib/custom_resource
10 1
efs-model-lambda.ts
in source/lib
229 1
porn-image.ts
in source/porn-image
49 1
porn_image_app.py
in source/porn-image/src
58 1
human_seg_app.py
in source/human-seg/src
62 1
human-seg.ts
in source/human-seg
47 1
infer-ocr.ts
in source/infer-ocr
82 1
__init__.py
in source/infer-ocr/src/postprocess
21 1
Files With Long Lines (Top 8)

There are 8 files with lines longer than 120 characters. In total, there are 37 long lines.

File# lines# units# long lines
super-resolution-gpu.ts
in source/super-resolution-gpu
173 1 7
super-resolution-inf1.ts
in source/super-resolution-inf1
172 1 7
porn-image.ts
in source/porn-image
49 1 6
infer-ocr.ts
in source/infer-ocr
82 1 6
human-seg.ts
in source/human-seg
47 1 4
super-resolution.ts
in source/super-resolution
48 1 4
ai-kits-rest-api.ts
in source/lib
137 2 2
main.py
in source/infer-ocr/src
262 13 1