aws-samples / amazon-lookout-for-metrics-samples
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,560 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (996 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (915 lines of code)
    • 25 very small files (649 lines of code)
0% | 0% | 38% | 35% | 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% | 30% | 51% | 17%
yaml0% | 0% | 81% | 0% | 18%
YAML0% | 0% | 61% | 0% | 38%
ts0% | 0% | 0% | 52% | 47%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
getting_started0% | 0% | 71% | 20% | 7%
workshops/RI2021/ml_ops0% | 0% | 94% | 0% | 5%
next_steps/readable_alerts_html0% | 0% | 59% | 40% | 0%
workshops/RI2021/ml_ops/lambdas0% | 0% | 0% | 59% | 40%
next_steps/kinesis_stream_connector/l4m_connector/stack0% | 0% | 0% | 100% | 0%
next_steps/kinesis_stream_connector/data_generator/src0% | 0% | 0% | 100% | 0%
next_steps/kinesis_stream_connector/l4m_detector/src0% | 0% | 0% | 100% | 0%
next_steps/readable_alerts0% | 0% | 0% | 0% | 100%
next_steps/kinesis_stream_connector/l4m_detector/stack0% | 0% | 0% | 0% | 100%
workshops/RI20210% | 0% | 0% | 0% | 100%
next_steps/kinesis_stream_connector/data_generator/stack0% | 0% | 0% | 0% | 100%
next_steps/kinesis_stream_connector/l4m_connector/src0% | 0% | 0% | 0% | 100%
workshops/RI2021/ml_ops/shared0% | 0% | 0% | 0% | 100%
next_steps/kinesis_stream_connector/data_generator0% | 0% | 0% | 0% | 100%
next_steps/kinesis_stream_connector/l4m_connector0% | 0% | 0% | 0% | 100%
next_steps/kinesis_stream_connector/l4m_detector0% | 0% | 0% | 0% | 100%
Longest Files (Top 34)
File# lines# units
utility.py
in getting_started
458 16
template.yaml
in workshops/RI2021/ml_ops
303 -
HumanReadableAlertsHtml.YAML
in next_steps/readable_alerts_html
235 -
anomaly-alert-function.py
in workshops/RI2021/ml_ops/lambdas/anomaly-alert-function
195 1
readable_alerts_html.py
in next_steps/readable_alerts_html
158 7
l4m_connector_stack.ts
in next_steps/kinesis_stream_connector/l4m_connector/stack
157 2
synth_live_data_csv.py
in next_steps/kinesis_stream_connector/data_generator/src
137 12
synth_live_data_csv.py
in next_steps/kinesis_stream_connector/l4m_detector/src
137 12
synth_data.py
in getting_started
131 12
HumanReadableAlerts.YAML
in next_steps/readable_alerts
99 -
l4m_detector_stack.ts
in next_steps/kinesis_stream_connector/l4m_detector/stack
76 1
AL4MWorkshop.yaml
in workshops/RI2021
69 -
data_generator_stack.ts
in next_steps/kinesis_stream_connector/data_generator/stack
64 1
glue_spark_etl_to_s3.py
in next_steps/kinesis_stream_connector/l4m_connector/src
53 2
LookoutForMetricsNotebookSetup.YAML
in getting_started
51 -
readable_alerts.py
in next_steps/readable_alerts
36 3
attach-alert-function.py
in workshops/RI2021/ml_ops/lambdas/attach-alert-function
35 1
create-and-activate-detector.py
in workshops/RI2021/ml_ops/lambdas/create-and-activate-detector
31 1
parse.py
in workshops/RI2021/ml_ops/lambdas/s3lambda
28 2
notify-delete.py
in workshops/RI2021/ml_ops/lambdas/notify-delete
18 2
params_builder.py
in workshops/RI2021/ml_ops
16 -
actions.py
in workshops/RI2021/ml_ops/shared/python
14 2
notify.py
in workshops/RI2021/ml_ops/lambdas/notify
13 2
jest.config.js
in next_steps/kinesis_stream_connector/data_generator
8 -
jest.config.js
in next_steps/kinesis_stream_connector/l4m_connector
8 -
jest.config.js
in next_steps/kinesis_stream_connector/l4m_detector
8 -
loader.py
in workshops/RI2021/ml_ops/shared/python
8 1
parameters.py
in workshops/RI2021/ml_ops/shared/python
8 1
__init__.py
in workshops/RI2021/ml_ops/lambdas/anomaly-alert-function
1 -
__init__.py
in workshops/RI2021/ml_ops/lambdas/s3lambda
1 -
__init__.py
in workshops/RI2021/ml_ops/lambdas/create-and-activate-detector
1 -
__inti__.py
in workshops/RI2021/ml_ops/lambdas/notify-delete
1 -
__init__.py
in workshops/RI2021/ml_ops/lambdas/attach-alert-function
1 -
__init__.py
in workshops/RI2021/ml_ops/lambdas/notify
1 -
Files With Most Units (Top 19)
File# lines# units
utility.py
in getting_started
458 16
synth_data.py
in getting_started
131 12
synth_live_data_csv.py
in next_steps/kinesis_stream_connector/data_generator/src
137 12
synth_live_data_csv.py
in next_steps/kinesis_stream_connector/l4m_detector/src
137 12
readable_alerts_html.py
in next_steps/readable_alerts_html
158 7
readable_alerts.py
in next_steps/readable_alerts
36 3
glue_spark_etl_to_s3.py
in next_steps/kinesis_stream_connector/l4m_connector/src
53 2
l4m_connector_stack.ts
in next_steps/kinesis_stream_connector/l4m_connector/stack
157 2
actions.py
in workshops/RI2021/ml_ops/shared/python
14 2
parse.py
in workshops/RI2021/ml_ops/lambdas/s3lambda
28 2
notify-delete.py
in workshops/RI2021/ml_ops/lambdas/notify-delete
18 2
notify.py
in workshops/RI2021/ml_ops/lambdas/notify
13 2
data_generator_stack.ts
in next_steps/kinesis_stream_connector/data_generator/stack
64 1
l4m_detector_stack.ts
in next_steps/kinesis_stream_connector/l4m_detector/stack
76 1
loader.py
in workshops/RI2021/ml_ops/shared/python
8 1
parameters.py
in workshops/RI2021/ml_ops/shared/python
8 1
anomaly-alert-function.py
in workshops/RI2021/ml_ops/lambdas/anomaly-alert-function
195 1
create-and-activate-detector.py
in workshops/RI2021/ml_ops/lambdas/create-and-activate-detector
31 1
attach-alert-function.py
in workshops/RI2021/ml_ops/lambdas/attach-alert-function
35 1
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 22 long lines.

File# lines# units# long lines
HumanReadableAlerts.YAML
in next_steps/readable_alerts
99 - 5
HumanReadableAlertsHtml.YAML
in next_steps/readable_alerts_html
235 - 5
synth_data.py
in getting_started
131 12 2
synth_live_data_csv.py
in next_steps/kinesis_stream_connector/data_generator/src
137 12 2
synth_live_data_csv.py
in next_steps/kinesis_stream_connector/l4m_detector/src
137 12 2
readable_alerts_html.py
in next_steps/readable_alerts_html
158 7 2
LookoutForMetricsNotebookSetup.YAML
in getting_started
51 - 1
readable_alerts.py
in next_steps/readable_alerts
36 3 1
glue_spark_etl_to_s3.py
in next_steps/kinesis_stream_connector/l4m_connector/src
53 2 1
AL4MWorkshop.yaml
in workshops/RI2021
69 - 1