facebookincubator / dhcplb
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 30 files with 1,558 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (573 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (144 lines of code)
    • 27 very small files (841 lines of code)
0% | 0% | 36% | 9% | 53%
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
go0% | 0% | 40% | 10% | 48%
rb0% | 0% | 0% | 0% | 100%
erb0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib0% | 0% | 46% | 11% | 41%
ROOT0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcpserver/recipes0% | 0% | 0% | 0% | 100%
vagrant/chef/roles0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcpserver/templates0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcprelay/templates0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcplb/recipes0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcprelay/recipes0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcplb0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcprelay0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcpserver0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcpclient0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcplb/templates0% | 0% | 0% | 0% | 100%
vagrant/chef/cookbooks/dhcpclient/recipes0% | 0% | 0% | 0% | 100%
Longest Files (Top 30)
File# lines# units
300 11
config.go
in lib
273 7
144 5
94 4
88 2
log.go
in lib
80 2
rr.go
in lib
72 8
server.go
in lib
70 5
69 4
main.go
in root
63 1
modulo.go
in lib
58 8
35 1
32 3
default.rb
in vagrant/chef/cookbooks/dhcpserver/recipes
24 -
21 5
dhcpd.conf.erb
in vagrant/chef/cookbooks/dhcpserver/templates/default
20 -
etc_default_isc-dhcp-relay.erb
in vagrant/chef/cookbooks/dhcprelay/templates/default
19 -
default.rb
in vagrant/chef/cookbooks/dhcplb/recipes
19 -
default.rb
in vagrant/chef/cookbooks/dhcprelay/recipes
13 -
metadata.rb
in vagrant/chef/cookbooks/dhcplb
8 -
metadata.rb
in vagrant/chef/cookbooks/dhcprelay
7 -
metadata.rb
in vagrant/chef/cookbooks/dhcpserver
7 -
metadata.rb
in vagrant/chef/cookbooks/dhcpclient
7 -
dhcp-servers-v4.cfg.erb
in vagrant/chef/cookbooks/dhcplb/templates/default
7 -
dhcplb.rb
in vagrant/chef/roles
6 -
default.rb
in vagrant/chef/cookbooks/dhcpclient/recipes
6 -
base.rb
in vagrant/chef/roles
4 -
dhcpclient.rb
in vagrant/chef/roles
4 -
dhcpserver.rb
in vagrant/chef/roles
4 -
dhcprelay.rb
in vagrant/chef/roles
4 -
Files With Most Units (Top 14)
File# lines# units
300 11
modulo.go
in lib
58 8
rr.go
in lib
72 8
config.go
in lib
273 7
21 5
server.go
in lib
70 5
144 5
94 4
69 4
32 3
log.go
in lib
80 2
88 2
35 1
main.go
in root
63 1
Files With Long Lines (Top 2)

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

File# lines# units# long lines
log.go
in lib
80 2 1
300 11 1
Correlations

File Size vs. Commits (all time): 30 points

lib/update_servers.go x: 6 commits (all time) y: 94 lines of code lib/filesourcer.go x: 4 commits (all time) y: 144 lines of code glog_logger.go x: 16 commits (all time) y: 88 lines of code lib/handler.go x: 37 commits (all time) y: 300 lines of code vagrant/chef/cookbooks/dhcplb/recipes/default.rb x: 6 commits (all time) y: 19 lines of code lib/config.go x: 16 commits (all time) y: 273 lines of code lib/dhcp_server.go x: 4 commits (all time) y: 32 lines of code lib/interface.go x: 12 commits (all time) y: 35 lines of code lib/server.go x: 8 commits (all time) y: 70 lines of code lib/throttle.go x: 3 commits (all time) y: 69 lines of code lib/rr.go x: 5 commits (all time) y: 72 lines of code main.go x: 8 commits (all time) y: 63 lines of code config_provider.go x: 9 commits (all time) y: 21 lines of code lib/log.go x: 1 commits (all time) y: 80 lines of code lib/modulo.go x: 4 commits (all time) y: 58 lines of code vagrant/chef/cookbooks/dhcpclient/metadata.rb x: 3 commits (all time) y: 7 lines of code vagrant/chef/cookbooks/dhcplb/metadata.rb x: 3 commits (all time) y: 8 lines of code vagrant/chef/cookbooks/dhcprelay/recipes/default.rb x: 3 commits (all time) y: 13 lines of code vagrant/chef/cookbooks/dhcprelay/templates/default/etc_default_isc-dhcp-relay.erb x: 3 commits (all time) y: 19 lines of code vagrant/chef/cookbooks/dhcpserver/recipes/default.rb x: 3 commits (all time) y: 24 lines of code vagrant/chef/roles/base.rb x: 3 commits (all time) y: 4 lines of code vagrant/chef/roles/dhcplb.rb x: 4 commits (all time) y: 6 lines of code
300.0
lines of code
  min: 4.0
  average: 51.93
  25th percentile: 7.0
  median: 20.5
  75th percentile: 70.5
  max: 300.0
0 37.0
commits (all time)
min: 1.0 | average: 6.17 | 25th percentile: 3.0 | median: 3.0 | 75th percentile: 6.5 | max: 37.0

File Size vs. Contributors (all time): 30 points

lib/update_servers.go x: 3 contributors (all time) y: 94 lines of code lib/filesourcer.go x: 3 contributors (all time) y: 144 lines of code glog_logger.go x: 4 contributors (all time) y: 88 lines of code lib/handler.go x: 9 contributors (all time) y: 300 lines of code vagrant/chef/cookbooks/dhcplb/recipes/default.rb x: 3 contributors (all time) y: 19 lines of code lib/config.go x: 6 contributors (all time) y: 273 lines of code lib/dhcp_server.go x: 2 contributors (all time) y: 32 lines of code lib/interface.go x: 4 contributors (all time) y: 35 lines of code lib/server.go x: 4 contributors (all time) y: 70 lines of code lib/throttle.go x: 3 contributors (all time) y: 69 lines of code lib/rr.go x: 3 contributors (all time) y: 72 lines of code main.go x: 2 contributors (all time) y: 63 lines of code config_provider.go x: 2 contributors (all time) y: 21 lines of code lib/log.go x: 1 contributors (all time) y: 80 lines of code lib/modulo.go x: 2 contributors (all time) y: 58 lines of code vagrant/chef/cookbooks/dhcpclient/metadata.rb x: 1 contributors (all time) y: 7 lines of code vagrant/chef/cookbooks/dhcplb/metadata.rb x: 1 contributors (all time) y: 8 lines of code vagrant/chef/cookbooks/dhcprelay/recipes/default.rb x: 1 contributors (all time) y: 13 lines of code vagrant/chef/cookbooks/dhcprelay/templates/default/etc_default_isc-dhcp-relay.erb x: 1 contributors (all time) y: 19 lines of code vagrant/chef/cookbooks/dhcpserver/recipes/default.rb x: 1 contributors (all time) y: 24 lines of code vagrant/chef/roles/base.rb x: 1 contributors (all time) y: 4 lines of code
300.0
lines of code
  min: 4.0
  average: 51.93
  25th percentile: 7.0
  median: 20.5
  75th percentile: 70.5
  max: 300.0
0 9.0
contributors (all time)
min: 1.0 | average: 2.2 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 3.0 | max: 9.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".