aws-samples / aws-database-migration-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 31 files with 962 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)
    • 2 small files (251 lines of code)
    • 29 very small files (711 lines of code)
0% | 0% | 0% | 26% | 73%
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
rb0% | 0% | 0% | 35% | 64%
vw0% | 0% | 0% | 0% | 100%
ddl0% | 0% | 0% | 0% | 100%
pls0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
mongodb/sampledb/v1/schema0% | 0% | 0% | 41% | 58%
oracle/sampledb/v1/schema0% | 0% | 0% | 0% | 100%
mongodb/sampledb/v1/scripts0% | 0% | 0% | 0% | 100%
mysql/sampledb/v1/schema0% | 0% | 0% | 0% | 100%
sqlserver/sampledb/v1/schema0% | 0% | 0% | 0% | 100%
mongodb/sampledb/v1/user0% | 0% | 0% | 0% | 100%
Longest Files (Top 31)
File# lines# units
load_sports_teams.rb
in mongodb/sampledb/v1/schema
143 -
generate_sporting_events.rb
in mongodb/sampledb/v1/schema
108 -
load_sport_location.rb
in mongodb/sampledb/v1/schema
100 1
ddl
dms_sample_dw.ddl
in oracle/sampledb/v1/schema
90 -
generate_tickets.rb
in mongodb/sampledb/v1/schema
58 -
load_nfl_data.rb
in mongodb/sampledb/v1/schema
36 -
load_nfl_stadium_data.rb
in mongodb/sampledb/v1/schema
35 -
load_sport.rb
in mongodb/sampledb/v1/schema
35 -
vw
sporting_event_ticket_info.vw
in mysql/sampledb/v1/schema
33 -
load_mlb_data.rb
in mongodb/sampledb/v1/schema
32 -
pls
generate_tickets.pls
in oracle/sampledb/v1/schema
32 1
load_person.rb
in mongodb/sampledb/v1/schema
29 -
vw
sporting_event_info.vw
in mysql/sampledb/v1/schema
27 -
load_name_data.rb
in mongodb/sampledb/v1/schema
26 -
vw
ticket_info.vw
in oracle/sampledb/v1/schema
21 -
vw
ticket_info.vw
in sqlserver/sampledb/v1/schema
19 -
list_sport_locations.rb
in mongodb/sampledb/v1/scripts
14 -
vw
sporting_event_info.vw
in oracle/sampledb/v1/schema
13 -
vw
sporting_event_info.vw
in sqlserver/sampledb/v1/schema
13 -
list_sports.rb
in mongodb/sampledb/v1/scripts
11 -
list_mlb_data.rb
in mongodb/sampledb/v1/scripts
9 -
list_nfl_stadium_data.rb
in mongodb/sampledb/v1/scripts
9 -
list_nfl_teams.rb
in mongodb/sampledb/v1/scripts
9 -
list_sport_locations_with_seats.rb
in mongodb/sampledb/v1/scripts
9 -
list_nfl_data.rb
in mongodb/sampledb/v1/scripts
9 -
list_name_data.rb
in mongodb/sampledb/v1/scripts
9 -
list_mlb_teams.rb
in mongodb/sampledb/v1/scripts
9 -
list_teams.rb
in mongodb/sampledb/v1/scripts
9 -
list_sporting_events.rb
in mongodb/sampledb/v1/scripts
7 -
create_dms_user.js
in mongodb/sampledb/v1/user
6 -
vw
getNewId.vw
in sqlserver/sampledb/v1/schema
2 -
Files With Most Units (Top 2)
File# lines# units
load_sport_location.rb
in mongodb/sampledb/v1/schema
100 1
pls
generate_tickets.pls
in oracle/sampledb/v1/schema
32 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
generate_tickets.rb
in mongodb/sampledb/v1/schema
58 - 11
generate_sporting_events.rb
in mongodb/sampledb/v1/schema
108 - 8
ddl
dms_sample_dw.ddl
in oracle/sampledb/v1/schema
90 - 7
load_sports_teams.rb
in mongodb/sampledb/v1/schema
143 - 5
load_sport_location.rb
in mongodb/sampledb/v1/schema
100 1 2
load_sport.rb
in mongodb/sampledb/v1/schema
35 - 1
pls
generate_tickets.pls
in oracle/sampledb/v1/schema
32 1 1