Skip to content

Instantly share code, notes, and snippets.

@wchristian
Created August 9, 2010 00:43
Show Gist options
  • Save wchristian/514749 to your computer and use it in GitHub Desktop.
Save wchristian/514749 to your computer and use it in GitHub Desktop.
c:\Perl\HTML-Tree-3.23>perl code_statistics.pl
### Collecting block statistics
### Average Block Length
16.1738382099828
### Average Block Size
529.349397590361
### Average Block Depth
1.57831325301205
### Top Ten Longest Blocks
File Line Lines Size Depth Dev.
================================================================================
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 214 529 21158 0 32.71
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 219 523 20999 1 32.34
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 746 226 7732 0 13.97
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 749 222 7703 1 13.73
HTML-Tree-3.23/lib/HTML/Element.pm 1989 173 5683 0 10.70
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 376 157 6938 2 9.71
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 974 148 5183 0 9.15
HTML-Tree-3.23/lib/HTML/Element.pm 1477 147 5092 0 9.09
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 977 144 5143 1 8.90
HTML-Tree-3.23/lib/HTML/Element.pm 2030 130 4298 1 8.04
HTML-Tree-3.23/lib/HTML/Element.pm 3342 99 3542 0 6.12
### Top Ten Biggest Blocks
File Line Lines Size Depth Dev.
================================================================================
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 214 529 21158 0 39.97
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 219 523 20999 1 39.67
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 746 226 7732 0 14.61
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 749 222 7703 1 14.55
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 376 157 6938 2 13.11
HTML-Tree-3.23/lib/HTML/Element.pm 1989 173 5683 0 10.74
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 974 148 5183 0 9.79
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 977 144 5143 1 9.72
HTML-Tree-3.23/lib/HTML/Element.pm 1477 147 5092 0 9.62
HTML-Tree-3.23/lib/HTML/Element.pm 2030 130 4298 1 8.12
HTML-Tree-3.23/lib/HTML/Element.pm 3342 99 3542 0 6.69
### Top Ten Deepest Located Blocks
File Line Lines Size Depth Dev.
================================================================================
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 475 7 331 5 3.17
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 495 7 285 5 3.17
HTML-Tree-3.23/lib/HTML/Element.pm 1526 18 615 4 2.53
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 471 12 565 4 2.53
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 490 13 526 4 2.53
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 519 7 253 4 2.53
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 465 6 190 4 2.53
HTML-Tree-3.23/lib/HTML/Element.pm 1531 8 181 4 2.53
HTML-Tree-3.23/lib/HTML/Element.pm 1504 8 180 4 2.53
HTML-Tree-3.23/lib/HTML/Element.pm 1521 6 175 4 2.53
HTML-Tree-3.23/lib/HTML/TreeBuilder.pm 484 5 169 4 2.53
c:\Perl\HTML-Tree-3.23>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment