aws-samples / aws-stepfunctions-examples
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 41 files with 2,468 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (778 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,194 lines of code)
    • 30 very small files (496 lines of code)
0% | 0% | 31% | 48% | 20%
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
yaml0% | 0% | 49% | 47% | 3%
py0% | 0% | 0% | 45% | 54%
yml0% | 0% | 0% | 100% | 0%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
demo-forecast-service-integration0% | 0% | 100% | 0% | 0%
app-s3-athena-dataprocessing0% | 0% | 50% | 35% | 13%
app-order-management0% | 0% | 79% | 0% | 20%
app-kyc-with-eventbridge0% | 0% | 0% | 100% | 0%
app-decompose-for-parallelism0% | 0% | 0% | 38% | 61%
app-control-concurrency-with-dynamodb0% | 0% | 0% | 92% | 7%
util-sfntoolkit0% | 0% | 0% | 100% | 0%
demo-asl-features0% | 0% | 0% | 100% | 0%
demo-video-transcription0% | 0% | 0% | 100% | 0%
app-local-testing-mock-config0% | 0% | 0% | 0% | 100%
Longest Files (Top 41)
File# lines# units
template.yaml
in sam/demo-forecast-service-integration/template
323 -
template.yaml
in sam/app-s3-athena-dataprocessing
235 -
template.yaml
in sam/app-order-management
220 -
ctl.py
in sam/app-decompose-for-parallelism
168 11
ctl.py
in sam/app-s3-athena-dataprocessing
166 11
template.yaml
in sam/app-control-concurrency-with-dynamodb
165 -
template.yaml
in sam/util-sfntoolkit
164 -
template.yaml
in sam/app-kyc-with-eventbridge
155 -
template.yaml
in sam/demo-asl-features
136 -
kyc.asl.yaml
in sam/app-kyc-with-eventbridge/statemachine
121 -
template.yml
in sam/demo-video-transcription
119 -
app.py
in sam/app-decompose-for-parallelism/functions/get_test_run_report
77 1
app.py
in sam/app-decompose-for-parallelism/functions/create_batches_in_s3
59 1
app.py
in sam/app-decompose-for-parallelism/functions/get_test_results_from_state_machine_output
52 1
template.yaml
in sam/app-local-testing-mock-config
52 -
app.py
in sam/app-decompose-for-parallelism/functions/split_if_required
29 1
app.py
in sam/app-decompose-for-parallelism/functions/record_metric_data
23 1
app.js
in sam/app-local-testing-mock-config/functions/check-identity
23 1
app.py
in sam/app-decompose-for-parallelism/functions/get_batches_from_s3
22 1
app.py
in sam/app-s3-athena-dataprocessing/functions/list_glue_crawlers
22 1
app.js
in sam/app-local-testing-mock-config/functions/check-address
21 1
app.py
in sam/app-s3-athena-dataprocessing/functions/create_s3_folder
20 1
app.py
in sam/app-order-management/functions/sqscallbackfunction
18 1
app.py
in sam/app-order-management/functions/get_customer_status
18 1
app.py
in sam/app-s3-athena-dataprocessing/functions/start_glue_crawler
17 1
app.py
in sam/app-order-management/functions/reserve_proudct
17 1
app.py
in sam/app-control-concurrency-with-dynamodb/functions/do_work_function
12 1
__init__.py
in sam/app-control-concurrency-with-dynamodb/functions/do_work_function
1 -
__init__.py
in sam/app-decompose-for-parallelism/functions
1 -
__init__.py
in sam/app-decompose-for-parallelism/functions/get_test_run_report
1 -
__init__.py
in sam/app-decompose-for-parallelism/functions/get_test_results_from_state_machine_output
1 -
__init__.py
in sam/app-decompose-for-parallelism/functions/record_metric_data
1 -
__init__.py
in sam/app-decompose-for-parallelism/functions/create_batches_in_s3
1 -
__init__.py
in sam/app-decompose-for-parallelism/functions/get_batches_from_s3
1 -
__init__.py
in sam/app-decompose-for-parallelism/functions/split_if_required
1 -
__init__.py
in sam/app-s3-athena-dataprocessing/functions/start_glue_crawler
1 -
__init__.py
in sam/app-s3-athena-dataprocessing/functions/list_glue_crawlers
1 -
__init__.py
in sam/app-s3-athena-dataprocessing/functions/create_s3_folder
1 -
__init__.py
in sam/app-order-management/functions/sqscallbackfunction
1 -
__init__.py
in sam/app-order-management/functions/reserve_proudct
1 -
__init__.py
in sam/app-order-management/functions/get_customer_status
1 -
Files With Most Units (Top 17)
File# lines# units
ctl.py
in sam/app-decompose-for-parallelism
168 11
ctl.py
in sam/app-s3-athena-dataprocessing
166 11
app.py
in sam/app-control-concurrency-with-dynamodb/functions/do_work_function
12 1
app.py
in sam/app-decompose-for-parallelism/functions/get_test_run_report
77 1
app.py
in sam/app-decompose-for-parallelism/functions/get_test_results_from_state_machine_output
52 1
app.py
in sam/app-decompose-for-parallelism/functions/record_metric_data
23 1
app.py
in sam/app-decompose-for-parallelism/functions/create_batches_in_s3
59 1
app.py
in sam/app-decompose-for-parallelism/functions/get_batches_from_s3
22 1
app.py
in sam/app-decompose-for-parallelism/functions/split_if_required
29 1
app.js
in sam/app-local-testing-mock-config/functions/check-address
21 1
app.js
in sam/app-local-testing-mock-config/functions/check-identity
23 1
app.py
in sam/app-s3-athena-dataprocessing/functions/start_glue_crawler
17 1
app.py
in sam/app-s3-athena-dataprocessing/functions/list_glue_crawlers
22 1
app.py
in sam/app-s3-athena-dataprocessing/functions/create_s3_folder
20 1
app.py
in sam/app-order-management/functions/sqscallbackfunction
18 1
app.py
in sam/app-order-management/functions/reserve_proudct
17 1
app.py
in sam/app-order-management/functions/get_customer_status
18 1
Files With Long Lines (Top 6)

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

File# lines# units# long lines
ctl.py
in sam/app-s3-athena-dataprocessing
166 11 5
ctl.py
in sam/app-decompose-for-parallelism
168 11 4
template.yaml
in sam/app-control-concurrency-with-dynamodb
165 - 1
app.py
in sam/app-control-concurrency-with-dynamodb/functions/do_work_function
12 1 1
template.yaml
in sam/app-s3-athena-dataprocessing
235 - 1
template.yaml
in sam/app-order-management
220 - 1