aws / opsworks-cookbooks
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 476 files with 13,686 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 11 medium size files (2,794 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,822 lines of code)
    • 452 very small files (9,070 lines of code)
0% | 0% | 20% | 13% | 66%
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% | 0% | 38% | 14% | 46%
rb0% | 0% | 6% | 11% | 82%
py0% | 0% | 0% | 100% | 0%
pl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
opsworks_ganglia0% | 0% | 44% | 23% | 32%
apache20% | 0% | 35% | 11% | 53%
haproxy0% | 0% | 71% | 0% | 28%
ebs0% | 0% | 40% | 16% | 43%
deploy0% | 0% | 0% | 18% | 81%
s3_file0% | 0% | 0% | 63% | 36%
passenger_apache20% | 0% | 0% | 35% | 64%
opsworks_java0% | 0% | 0% | 18% | 81%
opsworks_aws_flow_ruby0% | 0% | 0% | 57% | 42%
mysql0% | 0% | 0% | 0% | 100%
opsworks_commons0% | 0% | 0% | 0% | 100%
nginx0% | 0% | 0% | 0% | 100%
opsworks_initial_setup0% | 0% | 0% | 0% | 100%
unicorn0% | 0% | 0% | 0% | 100%
mod_php5_apache20% | 0% | 0% | 0% | 100%
scm_helper0% | 0% | 0% | 0% | 100%
opsworks_custom_cookbooks0% | 0% | 0% | 0% | 100%
ssh_users0% | 0% | 0% | 0% | 100%
opsworks_ecs0% | 0% | 0% | 0% | 100%
opsworks_agent_monit0% | 0% | 0% | 0% | 100%
memcached0% | 0% | 0% | 0% | 100%
opsworks_berkshelf0% | 0% | 0% | 0% | 100%
rails0% | 0% | 0% | 0% | 100%
opsworks_cloudwatchlogs0% | 0% | 0% | 0% | 100%
opsworks_nodejs0% | 0% | 0% | 0% | 100%
ruby0% | 0% | 0% | 0% | 100%
opsworks_stack_state_sync0% | 0% | 0% | 0% | 100%
php0% | 0% | 0% | 0% | 100%
opsworks_rubygems0% | 0% | 0% | 0% | 100%
opsworks_postgresql0% | 0% | 0% | 0% | 100%
opsworks_cleanup0% | 0% | 0% | 0% | 100%
gem_support0% | 0% | 0% | 0% | 100%
ssh_host_keys0% | 0% | 0% | 0% | 100%
opsworks_bundler0% | 0% | 0% | 0% | 100%
packages0% | 0% | 0% | 0% | 100%
agent_version0% | 0% | 0% | 0% | 100%
opsworks_shutdown0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
mysql.pyconf.erb
in opsworks_ganglia/templates/default
337 -
gmond.conf.erb
in opsworks_ganglia/templates/default
327 -
haproxy.cfg.erb
in haproxy/templates/default
292 -
view_overview.json.erb
in opsworks_ganglia/templates/default
289 -
block_device.rb
in ebs/libraries
263 19
mime.conf.erb
in apache2/templates/ubuntu-14.04/mods
238 -
apache2.conf.erb
in apache2/templates/ubuntu-14.04
218 -
apache2.conf.erb
in apache2/templates/redhat-7
218 -
nginx_status.py.erb
in opsworks_ganglia/templates/default
207 -
default.rb
in apache2/recipes
203 -
apache2.conf.erb
in apache2/templates/default
202 -
opsworks_deploy.rb
in deploy/definitions
188 -
s3_file.rb
in s3_file/libraries
187 14
mime.conf.erb
in apache2/templates/default/mods
181 -
ganglia_memcached.erb
in opsworks_ganglia/templates/default
170 -
metadata.rb
in apache2
157 -
web_app.conf.erb
in passenger_apache2/templates/default
139 -
web_app.conf.erb
in opsworks_java/templates/default
128 -
aws_flow_ruby_app.initrc.erb
in opsworks_aws_flow_ruby/templates/default
124 -
apache.py
in opsworks_ganglia/files/default
120 4
client.rb
in opsworks_ganglia/recipes
113 -
raid.rb
in ebs/providers
106 -
haproxy.rb.erb
in opsworks_ganglia/templates/default
105 -
haproxy.rb
in opsworks_ganglia/files/default
104 10
web_app.conf.erb
in mod_php5_apache2/templates/default
100 -
user.rb
in ssh_users/libraries
99 8
unicorn.service.erb
in unicorn/templates/default
95 -
my.cnf.erb
in mysql/templates/default
95 -
nginx_unicorn_web_app.erb
in unicorn/templates/default
92 -
apache.rb
in apache2/attributes
91 -
autoindex.conf.erb
in apache2/templates/default/mods
89 -
checkout.rb
in opsworks_custom_cookbooks/recipes
88 -
server.rb
in opsworks_ganglia/recipes
86 -
autoindex.conf.erb
in apache2/templates/ubuntu-14.04/mods
83 -
server.rb
in mysql/attributes
79 -
deploy.rb
in deploy/attributes
78 -
nginx_web_app.rb
in nginx/definitions
78 -
jvm_install.rb
in opsworks_java/recipes
76 -
assets_installer.rb
in opsworks_commons/providers
76 4
ssl.conf.erb
in apache2/templates/ubuntu-14.04/mods
75 -
monkey_patch_rubygems_provider.rb
in opsworks_commons/libraries
73 10
configure-server.rb
in opsworks_ganglia/recipes
73 -
conf.php.erb
in opsworks_ganglia/templates/default
72 -
default.rb
in s3_file/providers
71 -
install.rb
in opsworks_cloudwatchlogs/recipes
71 1
ssl.conf.erb
in apache2/templates/redhat-7/mods
70 -
package_info.rb
in opsworks_commons/libraries
70 8
security.conf.erb
in apache2/templates/ubuntu-14.04
69 -
s3.rb
in scm_helper/libraries
69 2
metadata.rb
in nginx
68 -
Files With Most Units (Top 20)
File# lines# units
block_device.rb
in ebs/libraries
263 19
opsworks_instance_agent_config_parser.rb
in opsworks_commons/libraries
59 15
s3_file.rb
in s3_file/libraries
187 14
monkey_patch_rubygems_provider.rb
in opsworks_commons/libraries
73 10
haproxy.rb
in opsworks_ganglia/files/default
104 10
user.rb
in ssh_users/libraries
99 8
activesupport_blank.rb
in opsworks_commons/libraries
47 8
package_info.rb
in opsworks_commons/libraries
70 8
ecs_agent.rb
in opsworks_ecs/libraries
38 5
berkshelf.rb
in opsworks_berkshelf/libraries
31 5
current_gem_version.rb
in gem_support/libraries
26 4
ebs_volume.rb
in ebs/libraries
52 4
assets_installer.rb
in opsworks_commons/providers
76 4
apache.py
in opsworks_ganglia/files/default
120 4
escape_characters.rb
in deploy/libraries
13 3
svn.rb
in scm_helper/libraries
45 3
predicates.rb
in opsworks_commons/libraries
9 3
s3.rb
in scm_helper/libraries
69 2
monkey_patch_provider_mapping.rb
in opsworks_commons/libraries
19 2
rails_configuration.rb
in rails/libraries
45 2
Files With Long Lines (Top 20)

There are 89 files with lines longer than 120 characters. In total, there are 232 long lines.

File# lines# units# long lines
haproxy.cfg.erb
in haproxy/templates/default
292 - 21
block_device.rb
in ebs/libraries
263 19 16
web_app.conf.erb
in opsworks_java/templates/default
128 - 16
deploy.rb
in deploy/attributes
78 - 8
checkout.rb
in opsworks_custom_cookbooks/recipes
88 - 8
ganglia_memcached.erb
in opsworks_ganglia/templates/default
170 - 6
current_gem_version.rb
in gem_support/libraries
26 4 5
tomcat_env_config.erb
in opsworks_java/templates/amazon
44 - 5
assets_installer.rb
in opsworks_commons/providers
76 4 5
view_overview.json.erb
in opsworks_ganglia/templates/default
289 - 5
haproxy.rb.erb
in opsworks_ganglia/templates/default
105 - 5
default.rb
in opsworks_java/attributes
61 - 4
unicorn.service.erb
in unicorn/templates/default
95 - 4
install.rb
in opsworks_berkshelf/recipes
41 1 4
s3_file.rb
in s3_file/libraries
187 14 4
default.rb
in opsworks_initial_setup/attributes
61 - 4
opsworks_deploy.rb
in deploy/definitions
188 - 3
mysql.rb
in deploy/recipes
36 - 3
load.rb
in opsworks_custom_cookbooks/recipes
21 - 3
tomcat_env_config.erb
in opsworks_java/templates/ubuntu
41 - 3