aws-samples / amazon-rekognition-id-verification-sample-with-amplify
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 43 files with 5,273 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,421 lines of code)
    • 9 medium size files (2,468 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (709 lines of code)
    • 26 very small files (675 lines of code)
0% | 26% | 46% | 13% | 12%
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
ts0% | 53% | 29% | 15% | 1%
js0% | 45% | 36% | 0% | 18%
tsx0% | 0% | 71% | 6% | 22%
yml0% | 0% | 100% | 0% | 0%
css0% | 0% | 0% | 94% | 5%
graphql0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 100% | 0% | 0% | 0%
amplify/backend0% | 40% | 36% | 8% | 15%
components0% | 0% | 83% | 7% | 9%
src/graphql0% | 0% | 79% | 20% | 0%
src/models0% | 0% | 96% | 0% | 3%
styles0% | 0% | 0% | 94% | 5%
common0% | 0% | 0% | 92% | 7%
pages0% | 0% | 0% | 0% | 100%
components/Layout0% | 0% | 0% | 0% | 100%
pages/api0% | 0% | 0% | 0% | 100%
infra0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
infra/lib0% | 0% | 0% | 0% | 100%
Longest Files (Top 43)
File# lines# units
API.ts
in src
859 -
idvfunctions.js
in amplify/backend/function/idvworkflowfn/src
562 12
register-new-user-with-idcard.tsx
in components
476 7
register-new-user.tsx
in components
312 4
amazonrekognitionidv6570cbea-cloudformation-template.yml
in amplify/backend/auth/amazonrekognitionidv6570cbea
277 -
collections.tsx
in components
271 2
queries.ts
in src/graphql
249 18
graphqlhelpers.js
in amplify/backend/function/idvworkflowfn/src
233 15
mutations.ts
in src/graphql
228 28
schema.js
in src/models
215 -
browse-users.tsx
in components
207 2
common-types.ts
in common
125 7
bootstrap5.dashboard.css
in styles
124 -
subscriptions.ts
in src/graphql
123 -
schema.graphql
in amplify/backend/api/amazonrekognitionidv
119 -
login-user.tsx
in components
113 1
Home.module.css
in styles
105 -
index.js
in amplify/backend/function/S3Triggerb6cacc90/src
88 4
validateidvflows.js
in amplify/backend/function/idvworkflowfn/src
71 4
DefaultLayout.tsx
in components/Layout
57 -
index.js
in amplify/backend/function/idvworkflowfn/src
54 10
sidebar.tsx
in components
45 1
index.tsx
in pages
35 1
dashboard.tsx
in components
28 -
sidebar-item.tsx
in components
27 1
collections.tsx
in pages
27 -
browse-users.tsx
in pages
27 -
login-user.tsx
in pages
27 -
update-user-photo.tsx
in pages
27 -
register-new-user-with-idcard.tsx
in pages
27 -
register-new-user.tsx
in pages
27 -
alert.tsx
in components
20 -
globals.css
in styles
14 -
update-user-photo.tsx
in components
11 -
pageheadingcomponent.tsx
in components
10 -
hello.ts
in pages/api
10 1
jest.config.js
in infra
8 -
index.js
in src/models
7 -
next.config.js
in root
6 -
infra-stack.ts
in infra/lib
6 1
image-capture-helpers.ts
in common
6 1
_app.tsx
in pages
6 -
dashboard-props.ts
in common
4 -
Files With Most Units (Top 19)
File# lines# units
mutations.ts
in src/graphql
228 28
queries.ts
in src/graphql
249 18
graphqlhelpers.js
in amplify/backend/function/idvworkflowfn/src
233 15
idvfunctions.js
in amplify/backend/function/idvworkflowfn/src
562 12
index.js
in amplify/backend/function/idvworkflowfn/src
54 10
common-types.ts
in common
125 7
register-new-user-with-idcard.tsx
in components
476 7
index.js
in amplify/backend/function/S3Triggerb6cacc90/src
88 4
validateidvflows.js
in amplify/backend/function/idvworkflowfn/src
71 4
register-new-user.tsx
in components
312 4
collections.tsx
in components
271 2
browse-users.tsx
in components
207 2
infra-stack.ts
in infra/lib
6 1
image-capture-helpers.ts
in common
6 1
sidebar-item.tsx
in components
27 1
login-user.tsx
in components
113 1
sidebar.tsx
in components
45 1
hello.ts
in pages/api
10 1
index.tsx
in pages
35 1
Files With Long Lines (Top 14)

There are 14 files with lines longer than 120 characters. In total, there are 71 long lines.

File# lines# units# long lines
register-new-user-with-idcard.tsx
in components
476 7 15
schema.graphql
in amplify/backend/api/amazonrekognitionidv
119 - 9
collections.tsx
in components
271 2 9
browse-users.tsx
in components
207 2 9
register-new-user.tsx
in components
312 4 7
dashboard.tsx
in components
28 - 6
sidebar.tsx
in components
45 1 5
amazonrekognitionidv6570cbea-cloudformation-template.yml
in amplify/backend/auth/amazonrekognitionidv6570cbea
277 - 4
index.js
in amplify/backend/function/idvworkflowfn/src
54 10 2
common-types.ts
in common
125 7 1
sidebar-item.tsx
in components
27 1 1
pageheadingcomponent.tsx
in components
10 - 1
alert.tsx
in components
20 - 1
DefaultLayout.tsx
in components/Layout
57 - 1