aws-solutions / machine-downtime-monitor-on-aws
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 57 files with 5,287 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 7 medium size files (2,272 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,410 lines of code)
    • 40 very small files (1,605 lines of code)
0% | 0% | 42% | 26% | 30%
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
tsx0% | 0% | 77% | 0% | 22%
ts0% | 0% | 30% | 36% | 32%
py0% | 0% | 55% | 34% | 10%
graphql0% | 0% | 0% | 100% | 0%
css0% | 0% | 0% | 0% | 100%
js0% | 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-ui/src0% | 0% | 67% | 0% | 32%
cdk-infrastructure/lib0% | 0% | 26% | 48% | 25%
lambda/filter-kinesis-stream0% | 0% | 60% | 30% | 8%
lambda/solution-helper0% | 0% | 29% | 33% | 37%
glue-job-scripts0% | 0% | 55% | 34% | 10%
lambda/data-sources0% | 0% | 0% | 100% | 0%
lambda/util0% | 0% | 0% | 0% | 100%
lambda/update-filter-function0% | 0% | 0% | 0% | 100%
web-ui/public0% | 0% | 0% | 0% | 100%
cdk-infrastructure0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Overview.tsx
in source/web-ui/src/views/overview
475 21
MachineStatusCard.tsx
in source/web-ui/src/views/machines
397 12
etl-construct.ts
in source/cdk-infrastructure/lib/bi-reporting/etl
381 1
index.ts
in source/lambda/filter-kinesis-stream
313 13
create-quicksight.ts
in source/lambda/solution-helper
272 4
MachineDetail.tsx
in source/web-ui/src/views/machines
231 8
configuration.py
in source/glue-job-scripts
203 7
quicksight-helper.ts
in source/lambda/solution-helper/quicksight
176 9
machine-downtime-monitor-on-aws-stack.ts
in source/cdk-infrastructure/lib
163 1
machine-data-parser.ts
in source/lambda/filter-kinesis-stream
159 9
appsync-api-construct.ts
in source/cdk-infrastructure/lib/front-end/appsync-api
159 1
solution-helper-construct.ts
in source/cdk-infrastructure/lib/solution-helper
145 3
custom-resource-utils.ts
in source/lambda/solution-helper
129 -
convert_parquet.py
in source/glue-job-scripts
125 4
real-time-processing-construct.ts
in source/cdk-infrastructure/lib/real-time-processing
122 1
machine-detail.ts
in source/lambda/data-sources
120 2
schema.graphql
in source/cdk-infrastructure/lib/front-end/appsync-api
112 -
index.ts
in source/lambda/update-filter-function
90 2
quicksight-construct.ts
in source/cdk-infrastructure/lib/bi-reporting/quicksight
87 1
queries.tsx
in source/web-ui/src/graphql
81 3
bi-reporting-construct.ts
in source/cdk-infrastructure/lib/bi-reporting
81 2
authentication-construct.ts
in source/cdk-infrastructure/lib/front-end/authentication
81 1
index.ts
in source/lambda/solution-helper
79 1
App.tsx
in source/web-ui/src
72 3
configure-etl.ts
in source/lambda/solution-helper
72 5
data-structures.ts
in source/web-ui/src/util
65 -
LineRow.tsx
in source/web-ui/src/views/lines
63 2
configure-ui.ts
in source/lambda/solution-helper
61 3
quicksight-properties.ts
in source/lambda/solution-helper/quicksight
60 -
front-end-construct.ts
in source/cdk-infrastructure/lib/front-end
59 1
MachineStatusCard.css
in source/web-ui/src/views/machines
56 -
Overview.css
in source/web-ui/src/views/overview
55 -
metrics.ts
in source/lambda/util
54 2
mutations.tsx
in source/web-ui/src/graphql
46 3
update_crawler.py
in source/glue-job-scripts
37 3
gql-schema-interfaces.ts
in source/lambda/util
37 -
configure-machine-data.ts
in source/lambda/solution-helper
36 3
data-models.ts
in source/lambda/util
36 -
utility-functions.ts
in source/lambda/util
33 2
data-access.ts
in source/lambda/filter-kinesis-stream
33 2
hosting-construct.ts
in source/cdk-infrastructure/lib/front-end/hosting
32 1
LargeNotification.tsx
in source/web-ui/src/views/shared
24 3
index.html
in source/web-ui/public
21 -
common-resources-construct.ts
in source/cdk-infrastructure/lib/common-resources
21 1
subscriptions.tsx
in source/web-ui/src/graphql
20 -
MachineDetail.css
in source/web-ui/src/views/machines
19 -
index.tsx
in source/web-ui/src
17 -
generate-solution-constants.ts
in source/lambda/solution-helper
15 1
index.css
in source/web-ui/src
12 -
jest.config.js
in source/lambda/solution-helper
11 -
Files With Most Units (Top 20)
File# lines# units
Overview.tsx
in source/web-ui/src/views/overview
475 21
index.ts
in source/lambda/filter-kinesis-stream
313 13
MachineStatusCard.tsx
in source/web-ui/src/views/machines
397 12
quicksight-helper.ts
in source/lambda/solution-helper/quicksight
176 9
machine-data-parser.ts
in source/lambda/filter-kinesis-stream
159 9
MachineDetail.tsx
in source/web-ui/src/views/machines
231 8
configuration.py
in source/glue-job-scripts
203 7
configure-etl.ts
in source/lambda/solution-helper
72 5
convert_parquet.py
in source/glue-job-scripts
125 4
create-quicksight.ts
in source/lambda/solution-helper
272 4
update_crawler.py
in source/glue-job-scripts
37 3
LargeNotification.tsx
in source/web-ui/src/views/shared
24 3
mutations.tsx
in source/web-ui/src/graphql
46 3
queries.tsx
in source/web-ui/src/graphql
81 3
App.tsx
in source/web-ui/src
72 3
configure-machine-data.ts
in source/lambda/solution-helper
36 3
configure-ui.ts
in source/lambda/solution-helper
61 3
solution-helper-construct.ts
in source/cdk-infrastructure/lib/solution-helper
145 3
LineRow.tsx
in source/web-ui/src/views/lines
63 2
solution-lifecycle-metric.ts
in source/lambda/solution-helper
9 2
Files With Long Lines (Top 20)

There are 26 files with lines longer than 120 characters. In total, there are 140 long lines.

File# lines# units# long lines
Overview.tsx
in source/web-ui/src/views/overview
475 21 26
MachineStatusCard.tsx
in source/web-ui/src/views/machines
397 12 22
machine-downtime-monitor-on-aws-stack.ts
in source/cdk-infrastructure/lib
163 1 14
MachineDetail.tsx
in source/web-ui/src/views/machines
231 8 8
machine-data-parser.ts
in source/lambda/filter-kinesis-stream
159 9 8
index.ts
in source/lambda/filter-kinesis-stream
313 13 7
create-quicksight.ts
in source/lambda/solution-helper
272 4 6
etl-construct.ts
in source/cdk-infrastructure/lib/bi-reporting/etl
381 1 6
LineRow.tsx
in source/web-ui/src/views/lines
63 2 4
configure-etl.ts
in source/lambda/solution-helper
72 5 4
machine-detail.ts
in source/lambda/data-sources
120 2 4
solution-helper-construct.ts
in source/cdk-infrastructure/lib/solution-helper
145 3 4
real-time-processing-construct.ts
in source/cdk-infrastructure/lib/real-time-processing
122 1 4
App.tsx
in source/web-ui/src
72 3 3
index.ts
in source/lambda/solution-helper
79 1 3
utility-functions.ts
in source/lambda/util
33 2 3
convert_parquet.py
in source/glue-job-scripts
125 4 2
queries.tsx
in source/web-ui/src/graphql
81 3 2
index.ts
in source/lambda/update-filter-function
90 2 2
schema.graphql
in source/cdk-infrastructure/lib/front-end/appsync-api
112 - 2