aws / aws-parallelcluster
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 343 files with 43,603 lines of code.
    • 7 very long files (12,132 lines of code)
    • 10 long files (6,840 lines of code)
    • 30 medium size files (8,267 lines of codeclsfd_ftr_w_mp_ins)
    • 44 small files (5,964 lines of code)
    • 252 very small files (10,400 lines of code)
27% | 15% | 18% | 13% | 23%
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
yaml79% | 0% | 14% | 3% | 2%
py15% | 20% | 20% | 16% | 27%
rb0% | 0% | 0% | 25% | 74%
erb0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
kts0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cli/src29% | 20% | 15% | 17% | 16%
api/spec99% | 0% | 0% | 0% | <1%
api/infrastructure100% | 0% | 0% | 0% | 0%
api/client11% | 16% | 13% | 8% | 49%
awsbatch-cli/src0% | 0% | 77% | 8% | 13%
util0% | 0% | 63% | 28% | 7%
cloudformation/ad0% | 0% | 100% | 0% | 0%
scheduler_plugins/slurm0% | 0% | 34% | 11% | 54%
api/docker0% | 0% | 0% | 0% | 100%
scheduler_plugins/plugin_template0% | 0% | 0% | 0% | 100%
cli0% | 0% | 0% | 0% | 100%
awsbatch-cli0% | 0% | 0% | 0% | 100%
cloudformation/utils0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
api0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
openapi.yaml
in cli/src/pcluster/api/openapi
3354 -
ParallelCluster.openapi.yaml
in api/spec/openapi
2474 -
cluster_config.py
in cli/src/pcluster/config
1545 170
cluster_stack.py
in cli/src/pcluster/templates
1295 42
parallelcluster-api.yaml
in api/infrastructure
1202 -
cluster_schema.py
in cli/src/pcluster/schemas
1144 90
model_utils.py
in api/client/src/pcluster_client
1118 60
pcluster3_config_converter.py
in cli/src/pcluster3_config_converter
925 75
imagebuilder_stack.py
in cli/src/pcluster/templates
895 24
cluster.py
in cli/src/pcluster/models
813 70
awsbatch_builder.py
in cli/src/pcluster/templates
702 32
cluster_validators.py
in cli/src/pcluster/validators
688 41
cdk_builder_utils.py
in cli/src/pcluster/templates
610 41
imagebuilder.py
in cli/src/pcluster/models
605 48
api_client.py
in api/client/src/pcluster_client
559 25
cluster_operations_api.py
in api/client/src/pcluster_client/api
540 1
image_operations_api.py
in api/client/src/pcluster_client/api
503 1
ad-integration.yaml
in cloudformation/ad
480 -
cw_dashboard_builder.py
in cli/src/pcluster/templates
389 21
awsbsub.py
in awsbatch-cli/src/awsbatch
368 13
cluster_logs_api.py
in api/client/src/pcluster_client/api
350 1
update_pcluster_configs.py
in util
348 18
image_logs_api.py
in api/client/src/pcluster_client/api
341 1
awsbstat.py
in awsbatch-cli/src/awsbatch
334 29
easyconfig.py
in cli/src/pcluster/cli/commands/configure
328 12
parallelcluster_validate.yaml
in cli/src/pcluster/resources/imagebuilder
326 -
cluster_operations_controller.py
in cli/src/pcluster/api/controllers
306 10
pcluster_api.py
in cli/src/pcluster/api
286 24
resource_helper.py
in cli/src/pcluster/resources/custom_resources/custom_resources_code/crhelper
284 31
s3_bucket.py
in cli/src/pcluster/models
282 35
ec2.py
in cli/src/pcluster/aws
273 41
image_operations_controller.py
in cli/src/pcluster/api/controllers
266 17
parallelcluster.yaml
in cli/src/pcluster/resources/imagebuilder
262 -
slurm_builder.py
in cli/src/pcluster/templates
247 13
common.py
in awsbatch-cli/src/awsbatch
239 16
generate-ami-list.py
in util
237 18
serverless_wsgi.py
in cli/src/pcluster/api/awslambda
229 13
cluster_instances_api.py
in api/client/src/pcluster_client/api
225 1
cluster_compute_fleet_api.py
in api/client/src/pcluster_client/api
215 1
slurm_plugin_infrastructure.cfn.yaml
in scheduler_plugins/slurm
211 -
aws_resources.py
in cli/src/pcluster/aws
209 58
pcluster_slurm_config_generator.py
in scheduler_plugins/slurm/artifacts/slurm_plugin_cookbook/files/default/head_node_slurm/slurm
208 15
common.py
in cli/src/pcluster/models
208 16
sync_buckets.py
in util
206 12
upload-cookbook.py
in util
205 9
rest.py
in api/client/src/pcluster_client
204 12
awsbhosts.py
in awsbatch-cli/src/awsbatch
201 12
configuration.py
in api/client/src/pcluster_client
199 19
upload-cfn-templates.py
in util
195 5
entrypoint.py
in cli/src/pcluster/cli
191 9
Files With Most Units (Top 20)
File# lines# units
cluster_config.py
in cli/src/pcluster/config
1545 170
cluster_schema.py
in cli/src/pcluster/schemas
1144 90
pcluster3_config_converter.py
in cli/src/pcluster3_config_converter
925 75
cluster.py
in cli/src/pcluster/models
813 70
model_utils.py
in api/client/src/pcluster_client
1118 60
aws_resources.py
in cli/src/pcluster/aws
209 58
imagebuilder.py
in cli/src/pcluster/models
605 48
cluster_stack.py
in cli/src/pcluster/templates
1295 42
cdk_builder_utils.py
in cli/src/pcluster/templates
610 41
ec2.py
in cli/src/pcluster/aws
273 41
cluster_validators.py
in cli/src/pcluster/validators
688 41
common.py
in cli/src/pcluster/config
166 37
s3_bucket.py
in cli/src/pcluster/models
282 35
utils.py
in cli/src/pcluster
170 33
awsbatch_builder.py
in cli/src/pcluster/templates
702 32
describe_image_response_content.py
in cli/src/pcluster/api/models
181 32
resource_helper.py
in cli/src/pcluster/resources/custom_resources/custom_resources_code/crhelper
284 31
awsbstat.py
in awsbatch-cli/src/awsbatch
334 29
describe_cluster_response_content.py
in cli/src/pcluster/api/models
182 28
api_client.py
in api/client/src/pcluster_client
559 25
Files With Long Lines (Top 20)

There are 32 files with lines longer than 120 characters. In total, there are 178 long lines.

File# lines# units# long lines
ParallelCluster.openapi.yaml
in api/spec/openapi
2474 - 54
parallelcluster-api.yaml
in api/infrastructure
1202 - 25
openapi.yaml
in cli/src/pcluster/api/openapi
3354 - 20
ad-integration.yaml
in cloudformation/ad
480 - 10
parallelcluster_tag.yaml
in cli/src/pcluster/resources/imagebuilder
148 - 9
update_head_node.rb
in scheduler_plugins/slurm/artifacts/slurm_plugin_cookbook/recipes
27 - 8
parallelcluster_validate.yaml
in cli/src/pcluster/resources/imagebuilder
326 - 6
parallelcluster.yaml
in cli/src/pcluster/resources/imagebuilder
262 - 6
config_head_node.rb
in scheduler_plugins/slurm/artifacts/slurm_plugin_cookbook/recipes
139 - 5
update_and_reboot.yaml
in cli/src/pcluster/resources/imagebuilder
132 - 4
__init__.py
in api/client/src/pcluster_client/models
62 - 3
buildspec.yml
in api/docker/awslambda
28 - 3
supervisord.conf.erb
in scheduler_plugins/slurm/artifacts/slurm_plugin_cookbook/templates/default
25 - 2
finalize_head_node.rb
in scheduler_plugins/slurm/artifacts/slurm_plugin_cookbook/recipes
36 - 2
helpers.rb
in scheduler_plugins/slurm/artifacts/slurm_plugin_cookbook/libraries
92 10 2
cluster_operations_api.py
in api/client/src/pcluster_client/api
540 1 2
custom_script.yaml
in cli/src/pcluster/resources/imagebuilder
48 - 2
99-parallelcluster-slurm.erb
in scheduler_plugins/slurm/artifacts/slurm_plugin_cookbook/templates/default/slurm
6 - 1
resume_program.erb
in scheduler_plugins/slurm/artifacts/slurm_plugin_cookbook/templates/default/slurm
2 - 1
suspend_program.erb
in scheduler_plugins/slurm/artifacts/slurm_plugin_cookbook/templates/default/slurm
2 - 1