awslabs / spot-tagging-bot-for-digital-assets
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 26 files with 3,413 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,433 lines of code)
    • 2 medium size files (611 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (747 lines of code)
    • 17 very small files (622 lines of code)
0% | 41% | 17% | 21% | 18%
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% | 64% | 27% | 0% | 7%
py0% | 0% | 0% | 64% | 35%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
deployment0% | 70% | 29% | 0% | 0%
source/sam_spot_bot_create_job0% | 0% | 0% | 71% | 28%
source0% | 0% | 0% | 0% | 100%
source/sam_spot_bot_api_receiver0% | 0% | 0% | 0% | 100%
source/sam_spot_bot_function0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
source/sam_spot_bot_get_job_status0% | 0% | 0% | 0% | 100%
Longest Files (Top 26)
File# lines# units
spot-bot-global.yaml
in deployment
719 -
spot-bot-china.yaml
in deployment
714 -
spot-bot-vpc-china.yaml
in deployment
308 -
spot-bot-vpc-global.yaml
in deployment
303 -
bot_dao.py
in source/sam_spot_bot_create_job
183 8
sagemaker_controller.py
in source/sam_spot_bot_create_job
162 8
batch_controller.py
in source/sam_spot_bot_create_job
160 8
stepfunction_controller.py
in source/sam_spot_bot_create_job
132 3
job_dao.py
in source/sam_spot_bot_create_job
110 7
packaged.yaml
in source
92 -
app.py
in source/sam_spot_bot_create_job
89 6
template.yaml
in source
84 -
config.py
in source/sam_spot_bot_create_job
62 2
app.py
in source/sam_spot_bot_api_receiver
60 2
iam_helper.py
in source/sam_spot_bot_create_job
54 6
app.py
in source/sam_spot_bot_function
39 1
buildspec.yml
in root
37 -
elasticsearch_helper.py
in source/sam_spot_bot_create_job
34 3
ecs_controller.py
in source/sam_spot_bot_create_job
32 5
s_three_dao.py
in source/sam_spot_bot_create_job
22 2
app.py
in source/sam_spot_bot_get_job_status
12 2
__init__.py
in source
1 -
__init__.py
in source/sam_spot_bot_function
1 -
__init__.py
in source/sam_spot_bot_get_job_status
1 -
__init__.py
in source/sam_spot_bot_create_job
1 -
__init__.py
in source/sam_spot_bot_api_receiver
1 -
Files With Most Units (Top 14)
File# lines# units
sagemaker_controller.py
in source/sam_spot_bot_create_job
162 8
bot_dao.py
in source/sam_spot_bot_create_job
183 8
batch_controller.py
in source/sam_spot_bot_create_job
160 8
job_dao.py
in source/sam_spot_bot_create_job
110 7
iam_helper.py
in source/sam_spot_bot_create_job
54 6
app.py
in source/sam_spot_bot_create_job
89 6
ecs_controller.py
in source/sam_spot_bot_create_job
32 5
elasticsearch_helper.py
in source/sam_spot_bot_create_job
34 3
stepfunction_controller.py
in source/sam_spot_bot_create_job
132 3
app.py
in source/sam_spot_bot_get_job_status
12 2
s_three_dao.py
in source/sam_spot_bot_create_job
22 2
config.py
in source/sam_spot_bot_create_job
62 2
app.py
in source/sam_spot_bot_api_receiver
60 2
app.py
in source/sam_spot_bot_function
39 1
Files With Long Lines (Top 6)

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

File# lines# units# long lines
bot_dao.py
in source/sam_spot_bot_create_job
183 8 11
spot-bot-china.yaml
in deployment
714 - 9
spot-bot-global.yaml
in deployment
719 - 9
spot-bot-vpc-global.yaml
in deployment
303 - 6
spot-bot-vpc-china.yaml
in deployment
308 - 6
buildspec.yml
in root
37 - 1