aws-samples / lambda-refarch-imagerecognition
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 14 files with 1,082 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (259 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (373 lines of code)
    • 10 very small files (450 lines of code)
0% | 0% | 23% | 34% | 41%
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
yml0% | 0% | 86% | 0% | 13%
js0% | 0% | 0% | 49% | 50%
yaml0% | 0% | 0% | 100% | 0%
graphql0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
amplify/backend/auth0% | 0% | 100% | 0% | 0%
amplify/backend/function0% | 0% | 0% | 59% | 40%
cloudformation0% | 0% | 0% | 100% | 0%
lambda-functions/store-image-metadata0% | 0% | 0% | 100% | 0%
amplify/backend/api0% | 0% | 0% | 0% | 100%
lambda-functions/thumbnail0% | 0% | 0% | 0% | 100%
src/react-frontend/src0% | 0% | 0% | 0% | 100%
lambda-functions/transform-metadata0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
lambda-functions/extract-image-metadata0% | 0% | 0% | 0% | 100%
lambda-functions/rekognition0% | 0% | 0% | 0% | 100%
src/react-frontend/public0% | 0% | 0% | 0% | 100%
Longest Files (Top 14)
File# lines# units
photoshareb143529b-cloudformation-template.yml
in amplify/backend/auth/photoshareb143529b
259 -
reference-index.js
in amplify/backend/function/S3Trigger984fb593/src
147 12
image-processing.serverless.yaml
in cloudformation
120 -
index.js
in lambda-functions/store-image-metadata
106 2
index.js
in amplify/backend/function/S3Trigger984fb593/src
99 6
schema.graphql
in amplify/backend/api/photoshare
91 -
index.js
in lambda-functions/thumbnail
60 2
index.js
in lambda-functions/transform-metadata
41 -
amplify.yml
in root
39 -
App.css
in src/react-frontend/src
33 -
index.js
in lambda-functions/extract-image-metadata
30 1
index.js
in lambda-functions/rekognition
24 -
index.html
in src/react-frontend/public
21 -
index.css
in src/react-frontend/src
12 -
Files With Most Units (Top 5)
File# lines# units
reference-index.js
in amplify/backend/function/S3Trigger984fb593/src
147 12
index.js
in amplify/backend/function/S3Trigger984fb593/src
99 6
index.js
in lambda-functions/store-image-metadata
106 2
index.js
in lambda-functions/thumbnail
60 2
index.js
in lambda-functions/extract-image-metadata
30 1
Files With Long Lines (Top 3)

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

File# lines# units# long lines
photoshareb143529b-cloudformation-template.yml
in amplify/backend/auth/photoshareb143529b
259 - 4
index.js
in lambda-functions/transform-metadata
41 - 3
amplify.yml
in root
39 - 1