aws / aws-parallelcluster-cookbook
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 152 files with 7,168 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (531 lines of code)
    • 6 medium size files (1,981 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,773 lines of code)
    • 132 very small files (2,883 lines of code)
0% | 7% | 27% | 24% | 40%
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
erb0% | 39% | 0% | 19% | 41%
rb0% | 0% | 25% | 25% | 49%
py0% | 0% | 64% | 28% | 6%
csh0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cookbooks/aws-parallelcluster-slurm0% | 35% | 14% | 9% | 40%
attributes0% | 0% | 98% | 0% | 1%
cookbooks/aws-parallelcluster-test0% | 0% | 65% | 33% | 1%
libraries0% | 0% | 100% | 0% | 0%
cookbooks/aws-parallelcluster-scheduler-plugin0% | 0% | 41% | 20% | 38%
cookbooks/aws-parallelcluster-config0% | 0% | 14% | 35% | 50%
cookbooks/aws-parallelcluster-install0% | 0% | 0% | 41% | 58%
cookbooks/aws-parallelcluster-awsbatch0% | 0% | 0% | 0% | 100%
recipes0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
templates/default0% | 0% | 0% | 0% | 100%
spec/unit0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
munge-init.erb
in cookbooks/aws-parallelcluster-slurm/templates/default/munge
531 -
default.rb
in attributes
416 -
tests.rb
in cookbooks/aws-parallelcluster-test/recipes
364 -
helpers.rb
in libraries
360 46
clusterstatusmgtd.py
in cookbooks/aws-parallelcluster-scheduler-plugin/files/default/clusterstatusmgtd
343 32
pcluster_dcv_authenticator.py
in cookbooks/aws-parallelcluster-config/files/default/dcv
290 27
pcluster_slurm_config_generator.py
in cookbooks/aws-parallelcluster-slurm/files/default/head_node_slurm/slurm
208 15
helpers.rb
in cookbooks/aws-parallelcluster-test/libraries
185 11
execute_event_handler.rb
in cookbooks/aws-parallelcluster-scheduler-plugin/resources
169 8
dcv.rb
in cookbooks/aws-parallelcluster-install/recipes
154 3
base.rb
in cookbooks/aws-parallelcluster-install/recipes
154 -
parallelcluster-ebsnvme-id.erb
in cookbooks/aws-parallelcluster-install/templates/default/ec2_udev_rules
145 -
config_head_node.rb
in cookbooks/aws-parallelcluster-slurm/recipes
145 -
write_cloudwatch_agent_json.py
in cookbooks/aws-parallelcluster-config/files/default/cloudwatch_agent
143 20
dcv.conf.erb
in cookbooks/aws-parallelcluster-config/templates/default/dcv
122 -
head_node_base.rb
in cookbooks/aws-parallelcluster-config/recipes
122 -
cloudwatch_log_configs_util.py
in cookbooks/aws-parallelcluster-config/files/default/cloudwatch_agent
116 17
directory_service.rb
in cookbooks/aws-parallelcluster-config/recipes
109 -
attachVolume.py
in cookbooks/aws-parallelcluster-install/files/default/ec2_udev_rules
106 4
intel.rb
in cookbooks/aws-parallelcluster-config/recipes
103 1
install_slurm.rb
in cookbooks/aws-parallelcluster-slurm/recipes
91 -
slurm.conf.erb
in cookbooks/aws-parallelcluster-slurm/templates/default/slurm
90 -
dcv.rb
in cookbooks/aws-parallelcluster-config/recipes
86 1
nvidia.rb
in cookbooks/aws-parallelcluster-install/recipes
81 -
head_node_raid.rb
in cookbooks/aws-parallelcluster-config/recipes
78 -
network_interfaces.rb
in cookbooks/aws-parallelcluster-config/recipes
71 8
ec2_dev_2_volid.py
in cookbooks/aws-parallelcluster-install/files/default/ec2_udev_rules
68 2
arm_pl.rb
in cookbooks/aws-parallelcluster-install/recipes
68 -
cloudwatch_agent.rb
in cookbooks/aws-parallelcluster-config/recipes
66 -
cloudwatch_agent.rb
in cookbooks/aws-parallelcluster-install/recipes
65 -
fetch_and_run.erb
in cookbooks/aws-parallelcluster-config/templates/default/init
64 -
lustre.rb
in cookbooks/aws-parallelcluster-install/recipes
60 -
create_user.rb
in cookbooks/aws-parallelcluster-scheduler-plugin/resources
59 2
init_dns.rb
in cookbooks/aws-parallelcluster-slurm/recipes
56 -
install_munge.rb
in cookbooks/aws-parallelcluster-slurm/recipes
56 -
ssh_target_checker.sh.erb
in cookbooks/aws-parallelcluster-config/templates/default/openssh
56 -
ec2_udev_rules.rb
in cookbooks/aws-parallelcluster-install/recipes
54 -
compute_base.rb
in cookbooks/aws-parallelcluster-config/recipes
54 -
fetch_artifacts.rb
in cookbooks/aws-parallelcluster-scheduler-plugin/resources
49 -
fetch_config.rb
in cookbooks/aws-parallelcluster-config/resources
48 2
parallelcluster_supervisord.conf.erb
in cookbooks/aws-parallelcluster-config/templates/default/base
47 -
imds.rb
in cookbooks/aws-parallelcluster-config/recipes
44 -
base.rb
in cookbooks/aws-parallelcluster-config/recipes
44 -
armpl_modulefile.erb
in cookbooks/aws-parallelcluster-install/templates/default/arm_pl
39 -
install_pmix.rb
in cookbooks/aws-parallelcluster-slurm/recipes
39 -
parallelcluster-iptables.erb
in cookbooks/aws-parallelcluster-config/templates/default/imds
39 -
sssd.conf.erb
in cookbooks/aws-parallelcluster-config/templates/default/directory_service
39 -
efa.rb
in cookbooks/aws-parallelcluster-install/recipes
38 -
intel_mpi.rb
in cookbooks/aws-parallelcluster-install/recipes
37 -
config_compute.rb
in cookbooks/aws-parallelcluster-slurm/recipes
36 -
Files With Most Units (Top 17)
File# lines# units
helpers.rb
in libraries
360 46
clusterstatusmgtd.py
in cookbooks/aws-parallelcluster-scheduler-plugin/files/default/clusterstatusmgtd
343 32
pcluster_dcv_authenticator.py
in cookbooks/aws-parallelcluster-config/files/default/dcv
290 27
write_cloudwatch_agent_json.py
in cookbooks/aws-parallelcluster-config/files/default/cloudwatch_agent
143 20
cloudwatch_log_configs_util.py
in cookbooks/aws-parallelcluster-config/files/default/cloudwatch_agent
116 17
pcluster_slurm_config_generator.py
in cookbooks/aws-parallelcluster-slurm/files/default/head_node_slurm/slurm
208 15
helpers.rb
in cookbooks/aws-parallelcluster-test/libraries
185 11
execute_event_handler.rb
in cookbooks/aws-parallelcluster-scheduler-plugin/resources
169 8
network_interfaces.rb
in cookbooks/aws-parallelcluster-config/recipes
71 8
attachVolume.py
in cookbooks/aws-parallelcluster-install/files/default/ec2_udev_rules
106 4
dcv.rb
in cookbooks/aws-parallelcluster-install/recipes
154 3
create_user.rb
in cookbooks/aws-parallelcluster-scheduler-plugin/resources
59 2
verify_cloudwatch_agent_public_key_fingerprint.py
in cookbooks/aws-parallelcluster-install/files/default/cloudwatch_agent
19 2
ec2_dev_2_volid.py
in cookbooks/aws-parallelcluster-install/files/default/ec2_udev_rules
68 2
fetch_config.rb
in cookbooks/aws-parallelcluster-config/resources
48 2
dcv.rb
in cookbooks/aws-parallelcluster-config/recipes
86 1
intel.rb
in cookbooks/aws-parallelcluster-config/recipes
103 1
Files With Long Lines (Top 20)

There are 55 files with lines longer than 120 characters. In total, there are 183 long lines.

File# lines# units# long lines
default.rb
in attributes
416 - 59
execute_event_handler.rb
in cookbooks/aws-parallelcluster-scheduler-plugin/resources
169 8 22
tests.rb
in cookbooks/aws-parallelcluster-test/recipes
364 - 9
parallelcluster_supervisord.conf.erb
in cookbooks/aws-parallelcluster-config/templates/default/base
47 - 7
update_head_node.rb
in cookbooks/aws-parallelcluster-slurm/recipes
27 - 6
config_head_node.rb
in cookbooks/aws-parallelcluster-slurm/recipes
145 - 5
ec2-volid.rules.erb
in cookbooks/aws-parallelcluster-install/templates/default/ec2_udev_rules
4 - 4
arm_pl.rb
in cookbooks/aws-parallelcluster-install/recipes
68 - 4
fetch_config.rb
in cookbooks/aws-parallelcluster-config/resources
48 2 4
directory_service.rb
in cookbooks/aws-parallelcluster-config/recipes
109 - 4
intel.rb
in cookbooks/aws-parallelcluster-config/recipes
103 1 4
invoke_scheduler_plugin_event_handler.rb
in recipes
14 - 3
helpers.rb
in libraries
360 46 3
init_head_node.rb
in cookbooks/aws-parallelcluster-scheduler-plugin/recipes
19 - 2
lustre.rb
in cookbooks/aws-parallelcluster-install/recipes
60 - 2
slurm.conf.erb
in cookbooks/aws-parallelcluster-slurm/templates/default/slurm
90 - 2
99-parallelcluster-slurm.erb
in cookbooks/aws-parallelcluster-slurm/templates/default/slurm
6 - 2
finalize_head_node.rb
in cookbooks/aws-parallelcluster-slurm/recipes
32 - 2
fetch_and_run.erb
in cookbooks/aws-parallelcluster-config/templates/default/init
64 - 2
cloudwatch_agent.rb
in cookbooks/aws-parallelcluster-config/recipes
66 - 2