aws-samples / amazon-opensearch-service-monitor
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 19 files with 1,440 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (728 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (118 lines of code)
    • 15 very small files (594 lines of code)
0% | 0% | 50% | 8% | 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
py0% | 0% | 41% | 9% | 48%
js0% | 0% | 100% | 0% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
CWMetricsToOpenSearch0% | 0% | 100% | 0% | 0%
opensearch0% | 0% | 78% | 0% | 21%
CWLogsToOpenSearch0% | 0% | 100% | 0% | 0%
CWMetricsToOpenSearch/es_sink0% | 0% | 0% | 19% | 80%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 19)
File# lines# units
handler.py
in CWMetricsToOpenSearch
266 16
opensearch_monitor_stack.py
in opensearch
242 1
index.js
in CWLogsToOpenSearch
220 12
descriptor.py
in CWMetricsToOpenSearch/es_sink
118 19
line_buffer.py
in CWMetricsToOpenSearch/es_sink
97 21
es_transport.py
in CWMetricsToOpenSearch/es_sink
93 6
flushing_buffer.py
in CWMetricsToOpenSearch/es_sink
85 7
transport_utils.py
in CWMetricsToOpenSearch/es_sink
71 7
setupCWSubscriptionFilter.py
in opensearch
64 2
es_auth.py
in CWMetricsToOpenSearch/es_sink
41 6
setup.py
in root
34 -
examples.py
in CWMetricsToOpenSearch/es_sink
30 -
sqs_transport.py
in CWMetricsToOpenSearch/es_sink
29 2
transport_result.py
in CWMetricsToOpenSearch/es_sink
16 -
transport_exceptions.py
in CWMetricsToOpenSearch/es_sink
14 -
app.py
in root
9 -
__init__.py
in CWMetricsToOpenSearch/es_sink
8 -
__version__.py
in CWMetricsToOpenSearch/es_sink
2 -
__init__.py
in opensearch
1 -
Files With Most Units (Top 11)
File# lines# units
line_buffer.py
in CWMetricsToOpenSearch/es_sink
97 21
descriptor.py
in CWMetricsToOpenSearch/es_sink
118 19
handler.py
in CWMetricsToOpenSearch
266 16
index.js
in CWLogsToOpenSearch
220 12
transport_utils.py
in CWMetricsToOpenSearch/es_sink
71 7
flushing_buffer.py
in CWMetricsToOpenSearch/es_sink
85 7
es_auth.py
in CWMetricsToOpenSearch/es_sink
41 6
es_transport.py
in CWMetricsToOpenSearch/es_sink
93 6
setupCWSubscriptionFilter.py
in opensearch
64 2
sqs_transport.py
in CWMetricsToOpenSearch/es_sink
29 2
opensearch_monitor_stack.py
in opensearch
242 1
Files With Long Lines (Top 3)

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

File# lines# units# long lines
opensearch_monitor_stack.py
in opensearch
242 1 5
setupCWSubscriptionFilter.py
in opensearch
64 2 3
index.js
in CWLogsToOpenSearch
220 12 1