aws-samples / alexa-top-sites-api-samples
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 9 files with 732 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (361 lines of code)
    • 6 very small files (371 lines of code)
0% | 0% | 0% | 49% | 50%
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
java0% | 0% | 0% | 60% | 39%
pl0% | 0% | 0% | 100% | 0%
php0% | 0% | 0% | 65% | 34%
py0% | 0% | 0% | 0% | 100%
rb0% | 0% | 0% | 0% | 100%
cs0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
legacy/java0% | 0% | 0% | 100% | 0%
legacy/perl0% | 0% | 0% | 100% | 0%
legacy/php0% | 0% | 0% | 100% | 0%
python0% | 0% | 0% | 0% | 100%
java/src/main/java/com/alexa/atsapi0% | 0% | 0% | 0% | 100%
legacy/ruby0% | 0% | 0% | 0% | 100%
php0% | 0% | 0% | 0% | 100%
dotnet0% | 0% | 0% | 0% | 100%
javascript0% | 0% | 0% | 0% | 100%
Longest Files (Top 9)
File# lines# units
TopSites.java
in legacy/java
126 5
topsites.pl
in legacy/perl
121 6
topsites.php
in legacy/php
114 8
topsites.py
in python
89 3
ATS.java
in java/src/main/java/com/alexa/atsapi
82 4
topsites.rb
in legacy/ruby
76 2
topsites.php
in php
60 4
Program.cs
in dotnet
40 2
topsites.js
in javascript
24 1
Files With Most Units (Top 9)
File# lines# units
topsites.php
in legacy/php
114 8
topsites.pl
in legacy/perl
121 6
TopSites.java
in legacy/java
126 5
ATS.java
in java/src/main/java/com/alexa/atsapi
82 4
topsites.php
in php
60 4
topsites.py
in python
89 3
topsites.rb
in legacy/ruby
76 2
Program.cs
in dotnet
40 2
topsites.js
in javascript
24 1
Files With Long Lines (Top 5)

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

File# lines# units# long lines
topsites.pl
in legacy/perl
121 6 7
TopSites.java
in legacy/java
126 5 5
topsites.php
in legacy/php
114 8 4
topsites.rb
in legacy/ruby
76 2 3
Program.cs
in dotnet
40 2 1