awslabs / amazon-s3-find-and-forget
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 96 files with 11,809 lines of code.
    • 1 very long files (1,004 lines of code)
    • 1 long files (884 lines of code)
    • 15 medium size files (4,997 lines of codeclsfd_ftr_w_mp_ins)
    • 20 small files (2,858 lines of code)
    • 59 very small files (2,066 lines of code)
8% | 7% | 42% | 24% | 17%
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
yaml28% | 0% | 57% | 9% | 4%
yml0% | 100% | 0% | 0% | 0%
js0% | 0% | 42% | 28% | 29%
py0% | 0% | 30% | 45% | 24%
css0% | 0% | 73% | 21% | 5%
in0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
templates22% | 20% | 45% | 7% | 3%
frontend/src/components0% | 0% | 49% | 23% | 26%
backend/ecs_tasks/delete_files0% | 0% | 57% | 12% | 29%
frontend/src0% | 0% | 66% | 18% | 14%
backend/lambdas/tasks0% | 0% | 52% | 0% | 47%
backend/lambdas/jobs0% | 0% | 0% | 99% | <1%
frontend/src/utils0% | 0% | 0% | 65% | 34%
backend/lambda_layers/boto_utils0% | 0% | 0% | 100% | 0%
backend/lambda_layers/decorators0% | 0% | 0% | 99% | <1%
backend/lambdas/queue0% | 0% | 0% | 100% | 0%
backend/lambdas/data_mappers0% | 0% | 0% | 100% | 0%
backend/lambdas/custom_resources0% | 0% | 0% | 0% | 100%
frontend/public0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
backend/lambdas/settings0% | 0% | 0% | 0% | 100%
ci0% | 0% | 0% | 0% | 100%
backend/lambda_layers/aws_sdk0% | 0% | 0% | 0% | 100%
backend/lambda_layers/cr_helper0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
state_machine.yaml
in templates
1004 -
api.definition.yml
in templates
884 -
index.css
in frontend/src
494 -
template.yaml
in templates
467 -
DeletionJob.js
in frontend/src/components/pages
432 1
NewDataMapper.js
in frontend/src/components/pages
419 1
deployment_helper.yaml
in templates
417 -
api.yaml
in templates
375 -
generate_queries.py
in backend/lambdas/tasks
346 15
NewDeletionQueueMatch.js
in frontend/src/components/pages
325 1
vpc.yaml
in templates
317 -
main.py
in backend/ecs_tasks/delete_files
264 10
s3.py
in backend/ecs_tasks/delete_files
244 14
ddb.yaml
in templates
232 -
DataMappers.js
in frontend/src/components/pages
232 1
BucketPolicyModal.js
in frontend/src/components
217 -
deletion_flow.yaml
in templates
216 -
boto_utils.py
in backend/lambda_layers/boto_utils/python
194 17
Icon.js
in frontend/src/components
189 -
DeletionQueue.js
in frontend/src/components/pages
189 1
decorators.py
in backend/lambda_layers/decorators/python
180 14
gateway.js
in frontend/src/utils
178 17
handlers.py
in backend/lambdas/queue
156 7
handlers.py
in backend/lambdas/jobs
154 4
glueSerializer.js
in frontend/src/utils
151 -
AppLayout.css
in frontend/src/components
148 -
handlers.py
in backend/lambdas/data_mappers
148 11
App.js
in frontend/src
140 -
stream_processor.py
in backend/lambdas/jobs
136 7
DeletionJobs.js
in frontend/src/components/pages
130 1
web_ui.yaml
in templates
121 -
parquet_handler.py
in backend/ecs_tasks/delete_files
113 9
status_updater.py
in backend/lambdas/jobs
110 4
auth.yaml
in templates
108 -
stream_processor.yaml
in templates
107 -
stats_updater.py
in backend/lambdas/jobs
104 3
StartDeletionJob.js
in frontend/src/components
102 -
cse.py
in backend/ecs_tasks/delete_files
99 9
Dashboard.js
in frontend/src/components/pages
97 -
serviceWorker.js
in frontend/src
94 4
manifests.yaml
in templates
89 -
AppLayout.js
in frontend/src/components
83 -
execute_query.py
in backend/lambdas/tasks
81 6
index.js
in frontend/src/utils
80 -
work_query_queue.py
in backend/lambdas/tasks
80 4
NewDataMapper.js
in frontend/src/components/help
74 3
events.py
in backend/ecs_tasks/delete_files
73 5
NewDeletionQueueMatch.js
in frontend/src/components/help
61 2
DeletionJobDetails.js
in frontend/src/components/help
60 3
request.js
in frontend/src/utils
58 1
Files With Most Units (Top 20)
File# lines# units
gateway.js
in frontend/src/utils
178 17
boto_utils.py
in backend/lambda_layers/boto_utils/python
194 17
generate_queries.py
in backend/lambdas/tasks
346 15
s3.py
in backend/ecs_tasks/delete_files
244 14
decorators.py
in backend/lambda_layers/decorators/python
180 14
handlers.py
in backend/lambdas/data_mappers
148 11
main.py
in backend/ecs_tasks/delete_files
264 10
parquet_handler.py
in backend/ecs_tasks/delete_files
113 9
cse.py
in backend/ecs_tasks/delete_files
99 9
handlers.py
in backend/lambdas/queue
156 7
stream_processor.py
in backend/lambdas/jobs
136 7
Dashboard.js
in frontend/src/components/help
55 6
execute_query.py
in backend/lambdas/tasks
81 6
events.py
in backend/ecs_tasks/delete_files
73 5
serviceWorker.js
in frontend/src
94 4
DataMappers.js
in frontend/src/components/help
55 4
json_handler.py
in backend/ecs_tasks/delete_files
58 4
work_query_queue.py
in backend/lambdas/tasks
80 4
status_updater.py
in backend/lambdas/jobs
110 4
handlers.py
in backend/lambdas/jobs
154 4
Files With Long Lines (Top 6)

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

File# lines# units# long lines
api.definition.yml
in templates
884 - 18
template.yaml
in templates
467 - 13
state_machine.yaml
in templates
1004 - 9
vpc.yaml
in templates
317 - 2
DataMappers.js
in frontend/src/components/pages
232 1 1
s3.py
in backend/ecs_tasks/delete_files
244 14 1