aws-samples / aws-appsync-iot-core-realtime-dashboard
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 30 files with 1,944 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (736 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (102 lines of code)
    • 27 very small files (1,106 lines of code)
0% | 0% | 37% | 5% | 56%
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% | 0% | 62% | 0% | 37%
yml0% | 0% | 100% | 0% | 0%
tsx0% | 0% | 0% | 19% | 80%
js0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
graphql0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
web/src0% | 0% | 86% | 0% | 13%
web/amplify/backend/auth0% | 0% | 100% | 0% | 0%
web/src/pages/SensorPage0% | 0% | 0% | 100% | 0%
web/src/graphql0% | 0% | 0% | 0% | 100%
sensor0% | 0% | 0% | 0% | 100%
web/amplify/backend/function0% | 0% | 0% | 0% | 100%
web/src/pages/MapPage0% | 0% | 0% | 0% | 100%
web/src/components/SensorValuePanel0% | 0% | 0% | 0% | 100%
web/src/api0% | 0% | 0% | 0% | 100%
web/src/components/SensorChart0% | 0% | 0% | 0% | 100%
web/amplify/backend/api0% | 0% | 0% | 0% | 100%
web/src/components/AppBar0% | 0% | 0% | 0% | 100%
web/public0% | 0% | 0% | 0% | 100%
web/src/components/Layout0% | 0% | 0% | 0% | 100%
web0% | 0% | 0% | 0% | 100%
Longest Files (Top 30)
File# lines# units
API.ts
in web/src
460 -
iotdashboard6b12339b-cloudformation-template.yml
in web/amplify/backend/auth/iotdashboard6b12339b
276 -
index.tsx
in web/src/pages/SensorPage
102 -
mutations.ts
in web/src/graphql
99 12
index.tsx
in web/src/components/SensorValuePanel
97 -
queries.ts
in web/src/graphql
96 10
Sensors.tsx
in web/src/api
90 -
index.tsx
in web/src/pages/MapPage
89 4
create-sensors.js
in sensor
80 1
subscriptions.ts
in web/src/graphql
65 2
index.tsx
in web/src/components/SensorChart
59 -
index.js
in web/amplify/backend/function/createsensorvalue/src
58 -
index.js
in sensor
55 3
delete-sensors.js
in sensor
47 1
schema.graphql
in web/amplify/backend/api/iotdashboard
38 -
index.js
in web/amplify/backend/function/getsensor/src
27 -
index.js
in web/amplify/backend/function/listsensors/src
25 -
mutations.js
in web/amplify/backend/function/createsensorvalue/src
23 -
index.html
in web/public
20 -
index.tsx
in web/src/components/Layout
18 -
Routes.tsx
in web/src
18 -
index.css
in web/src/components/AppBar
17 -
index.tsx
in web/src
16 -
index.tsx
in web/src/components/AppBar
15 -
reportWebVitals.ts
in web/src
13 -
index.css
in web/src/pages/MapPage
13 -
index.css
in web/src
12 -
App.tsx
in web/src
12 -
babel.config.js
in web
3 -
setupTests.ts
in web/src
1 -
Files With Most Units (Top 7)
File# lines# units
mutations.ts
in web/src/graphql
99 12
queries.ts
in web/src/graphql
96 10
index.tsx
in web/src/pages/MapPage
89 4
index.js
in sensor
55 3
subscriptions.ts
in web/src/graphql
65 2
create-sensors.js
in sensor
80 1
delete-sensors.js
in sensor
47 1
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 13 long lines.

File# lines# units# long lines
mutations.js
in web/amplify/backend/function/createsensorvalue/src
23 - 7
iotdashboard6b12339b-cloudformation-template.yml
in web/amplify/backend/auth/iotdashboard6b12339b
276 - 4
index.tsx
in web/src/pages/MapPage
89 4 1
delete-sensors.js
in sensor
47 1 1